LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2014, 04:11 AM   #1
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Rep: Reputation: Disabled
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
 
Old 04-17-2014, 04:15 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,562

Rep: Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810
http://www.cpan.org/modules/INSTALL.html
install cpanm
 
Old 04-17-2014, 04:47 AM   #3
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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
 
Old 04-17-2014, 04:53 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,697

Rep: Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291
# 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.

-
 
Old 04-17-2014, 04:56 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,697

Rep: Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291
# 3 .

# yum install perl-DBD-MySQL
 
Old 04-17-2014, 05:39 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,562

Rep: Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810Reputation: 2810
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install module from cpan byran cheung Linux - Newbie 1 04-17-2014 04:23 AM
Schedule::At CPAN module fails to install alienDog Programming 4 09-16-2011 06:34 PM
CPAN module install error ilnli Programming 1 04-06-2008 02:18 AM
Where is CPAN? How do I install new module? NeilJones Mandriva 4 12-22-2007 02:59 PM
Unable to install Perl module via CPAN Sparky.Watson Linux - Software 1 08-24-2005 08:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration