Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Installing Perl modules
PostPosted: Wed Aug 01, 2012 5:35 am 
Offline
Senior Newbie

Joined: Tue Jul 31, 2012 3:16 am
Posts: 7
Hi,

I'm having trouble installing Perl modules, specifically the XML::LibXML module.
I'm using Ubuntu 12.04 LTS Server.

I'm following the guide at:
http://library.linode.com/linux-tools/utilities/cpanm

In a terminal window, when I type (with and without sudo):
Code:
curl https://raw.github.com/miyagawa/cpanminus/master/cpanm > cpanm

I get the error:
Quote:
-bash: cpanm: Permission denied


What do I need to do to fix this? I'm a beginner, so please keep it simple.

Thanks :-)


Top
   
PostPosted: Wed Aug 01, 2012 5:42 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
It sounds like you don't have permissions to write files in the directory you're in.

In any case, though, you probably want to use the version that's in Ubuntu:

Code:
sudo apt-get install libxml-libxml-perl


If a module is named "xxx::yyy", you can often find it packaged as "libxxx-yyy-perl".

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Wed Aug 01, 2012 6:09 am 
Offline
Senior Newbie

Joined: Tue Jul 31, 2012 3:16 am
Posts: 7
hoopycat wrote:
It sounds like you don't have permissions to write files in the directory you're in.

In any case, though, you probably want to use the version that's in Ubuntu:

Code:
sudo apt-get install libxml-libxml-perl


If a module is named "xxx::yyy", you can often find it packaged as "libxxx-yyy-perl".

That worked for me.......thanks :D
If in the future I want to install a module that doesn't fit the "libxxx-yyy-perl" nameing convention, is there a way to find out what it is? I'm wondering if there's a big list somewhere....
XML::LibXML ====> libxml-libxml-perl
etc
etc


Top
   
PostPosted: Wed Aug 01, 2012 10:43 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
'apt-cache search' lets you search all the packages for things matching particular words (or, more accurately, regular expressions):

Code:
rtucker@witte:~$ apt-cache search libxml perl
inkscape - vector-based drawing program
libxml-dom-perl - Perl module for building DOM Level 1 compliant doc structures
libxml-filter-buffertext-perl - Perl module for putting all characters into a single event
libxml-handler-yawriter-perl - Perl module for writing XML documents
libxml-libxml-perl - Perl interface to the libxml2 library
libxml-namespacesupport-perl - Perl module for supporting simple generic namespaces
libxml-parser-perl - Perl module for parsing XML files
libxml-perl - Perl modules for working with XML
...


Check the apt-cache man page for a bunch of other cool stuff, too!

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: mattltm and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group