LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-12-2013, 04:42 PM   #1
circus78
Member
 
Registered: Dec 2011
Posts: 273

Rep: Reputation: Disabled
Question about CPAN and perl modules


Hi,
I need to install specific (and old) version of some CPAN perl modules.
I can retrieve "sources" from /root/.cpan/build directory of another system.
Can I safely install those modules as usual (perl Makefile.pl, make, make install) from those directory?
What's the difference between doing this and installing modules using the cpan shell?
Thankyou
 
Old 02-12-2013, 06:27 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
Can I safely install those modules as usual
(perl Makefile.pl, make, make install) from those directory ?
If they are OK, yes.
Most old modules can also be found as "Debian source.tar.gz", or SRC.RPMS.


Quote:
What's the difference between doing this and installing modules using the cpan shell ?
# cpan
cpan > install Module : Will also take care of dependencies.
But will install the latest versions of the 'Module' and the missing dependencies.

Manual install ( perl Makefile.pl && make && make test ) :
1) The dependencies must be installed beforehand.
2) The 'make test' can be omitted, which you can't do with cpan.
..... ( Some few modules cannot pass all tests.)
But : The manual result is exactly the same as cpan,
if it's about the same module version.
( Some modules have a Makefile* that will put some files in /usr/local/.)

-
 
  


Reply



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
issues with cpan perl modules reticent Debian 12 01-29-2011 07:30 AM
CPAN and PERL Modules metallica1973 Programming 4 02-01-2008 09:14 PM
load perl CPAN modules sailu_mvn Linux - Software 1 04-18-2006 07:31 PM
perl modules problems CPAN tardigrade Linux - Software 6 09-02-2004 12:29 PM
Canīt download perl modules with cpan emilioestevezz Linux - Networking 1 08-25-2004 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:09 AM.

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
Open Source Consulting | Domain Registration