I have installed Perl in directory "/srv/data203806/MUXmh-Migration/CPAN/localperl/". I have downloaded the tar file and unzipped it. Now how do I install CPAN modules manually to this Perl installation?
1 Answer
When you are installing a CPAN module as a non-root user then you should use the PREFIX option with Makefile.pl like this:
perl Makefile.PL PREFIX=<your directory>
make
make install
This will install the module in the directory you have specified with the PREFIX option.
Steps to install cpan module:
- Download the .gz file from cpan website
- Extract the .gz file
- Go to the extracted directory
Run the following commands
perl Makefile.pl PREFIX=<local directory you need> make make install
1 Comment
Naghaveer R
Thanks Raghu... Can I know how to install using CPAN to particular directory?
cpanorcpanmtools? How did you install that perl – theperlbrewscript helps setting up your environment variables so that you can use multiple perls effectively.