how to install module from cpan
I download a module from http://www.cpan.org/ and install to my server , would advise except download the module , is it possible install it online just like use "yum install mysql" which would install all mysql module and no need to download ? thanks
|
http://www.cpan.org/modules/INSTALL.html
install cpanm |
Quote:
I read it , but I am not understand very well , for example , if I want to install the module http://search.cpan.org/~capttofu/DBD...b/DBD/mysql.pm , what can I do ? thanks |
# 1 .
Quote:
$ yum search <name> (or part of name) Or : $ yum provides */<module>.pl ** There are about 290 packages perl-<module-name> in the basic "el6 repo´s". ** And 647 in the EPEL.repo . ? Why not tell the name of the required `perl module' ? ? Some are available from 3'party repo´s. - |
# 3 .
# yum install perl-DBD-MySQL |
first you need to run cpan App::cpanminus, only once. After that you can install any package by cpanm <module name>. so you need to type cpanm DBD::mysql. Some modules will require additional packages like gcc.
|
All times are GMT -5. The time now is 05:11 AM. |