LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Question about CPAN and perl modules (https://www.linuxquestions.org/questions/linux-server-73/question-about-cpan-and-perl-modules-4175449884/)

circus78 02-12-2013 04:42 PM

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

knudfl 02-12-2013 06:27 PM

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/.)

-


All times are GMT -5. The time now is 08:47 PM.