First I would recommend searching your package manager. A lot of commonly used modules are probably already in your software repositories.
Code:
yum install perl-GD
yum install perl-XML-Parser
yum install perl-Regexp-Copy
etc
This is likely to work on a recent redhat system (RHEL5 for sure), if you don't have yum though or have the default software repos disabled for some reason this won't cut it.
You can try the syntax you posted to install things if you have the CPAN module. If it says "Can't locate CPAN.pm" though, try
And for that matter, that would install the "cpan shell", where you can just execute commands like this:
Code:
# cpan install Image::Resize
(perl 5.8)
# cpan Image::Resize
(perl 5.10)
If the CPAN installer doesn't work (it "won't install without force" so if anything happens during its effort to install it, it will abort and not install it for you), you can always install things manually.
Most Perl modules you can just download as a tar.gz from
cd to their directory and do
Code:
perl Makefile.PL
make
make test
make install
(the last one requires root)
-------------
Cuvou.com | My personal homepage
Code:
perl -e '$|=$i=1;print" oo\n<|>\n_|_";x:sleep$|;print"\b",$i++%2?"/":"_";goto x;'