LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to install module from cpan (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-module-from-cpan-4175502032/)

byran cheung 04-17-2014 04:11 AM

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

pan64 04-17-2014 04:15 AM

http://www.cpan.org/modules/INSTALL.html
install cpanm

byran cheung 04-17-2014 04:47 AM

Quote:

Originally Posted by pan64 (Post 5154389)

thanks reply ,

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

knudfl 04-17-2014 04:53 AM

# 1 .
Quote:

is it possible install it online just like use "yum install mysql"
Yes. If available with :
$ 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.

-

knudfl 04-17-2014 04:56 AM

# 3 .

# yum install perl-DBD-MySQL

pan64 04-17-2014 05:39 AM

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.