Perl modules have been developed over the past 15 to 20 years, and the installation method has changed significantly. Unfortunately, you might run into a program that needs to install a really old Perl module, and its installation is just not behaving properly under the new installation methods. You might see something like the following:
[bfreeman@rclogin12 PfamScan]$ ./pfam_scan.pl --help
Can't locate Data/Printer.pm in @INC (@INC contains: /n/sw/fasrcsw/apps/Core/perl-modules.....
The remedy can be rather simple:
1. Follow our new lmod - Perl instructions here on setting up your home directory for installing Perl modules 'locally'.
Note that the
export PERL5LIB command must include both
$LOCALPERL/lib/perl5 (it's subdirectory) as some installation routines honor one; some the other.
2. Sometimes, you might need to install the module manually. Try both the
Makefile.PL build and the
Build.PL build if one or the other doesn't work.
3. In CPAN, you can do this manual install method without the hassle of the download process:
This latter command will download the module and unpack it for you, and leave you at the shell, where you can try either the
Build.PL build process.
Last updated: February 3, 2016 at 12:03 pm
Posted in: d. Software
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Permissions beyond the scope of this license may be available at Attribution.