Installing Perl modules
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:
In a terminal window, when I type (with and without sudo):
curl https://raw.github.com/miyagawa/cpanminus/master/cpanm > cpanm
I get the error:
> -bash: cpanm: Permission denied
What do I need to do to fix this? I'm a beginner, so please keep it simple.
Thanks
3 Replies
In any case, though, you probably want to use the version that's in Ubuntu:
sudo apt-get install libxml-libxml-perl
If a module is named "xxx::yyy", you can often find it packaged as "libxxx-yyy-perl".
@hoopycat:
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:
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
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!