I would like to know about the perl module installations in unix. Can anyone please explain the steps?
-
3See http://perldoc.perl.org/perlmodinstall.html – Sinan Ünür Oct 19 '11 at 14:24
-
You are supposed to show some level of research effort before posting a question. – Vala Oct 21 '11 at 11:15
-
From the [Stack Overflow Perl FAQ](http://stackoverflow.com/questions/tagged/perl?sort=faq): [What's the easiest way to install a missing Perl module?](http://stackoverflow.com/questions/65865/whats-the-easiest-way-to-install-a-missing-perl-module) – daxim Oct 24 '11 at 16:24
4 Answers
If only there was a manual page about this which came as part of the standard Perl installation.

- 68,119
- 3
- 51
- 97
Apart from using the cpan
client, there is another client named cpanm
(cpanminus) which is gaining in popularity.
Installing cpanm
curl -L http://cpanmin.us | perl - --self-upgrade
Or:
wget -O - http://cpanmin.us | perl - --self-upgrade
Installing modules with cpanm
cpanm Name::of::Module
Use the -S
flag for sudo
. Read more about cpanm
.

- 72,802
- 19
- 102
- 127
In these links, How to install CPAN modules and How To Install Perl Modules Manually and Using CPAN command, you may find the all the information that you need. I hope it helps.

- 4,569
- 4
- 27
- 33
You can install Perl module manually using CPAN (cf. docs mentioned by davorg or bacchus) or try to find out in the packages if you are using unix systems with packages management.
For example to install the module Net::Twitter you can do :
perl -MCPAN -e 'install Net::Twitter'
or for example if you are on a Debian Squeeze :
aptitude install libnet-twitter-perl
Sometime the module you are looking for may be packaged