Install Perl and package (local)

Install local Perl

1. down­load source code

2. ./configure prefix=/path/to/directory

3. make –j 60

4. make –j 60 test

Failed 12 tests out of 2373, 99.49% okay.

5. make –j 60 install DESTDIR=/path/to/dir

6. setup envi­ron­ment:

export PATH=/bin 
export PERL5LIB=/lib/perl5/5.26.0 #about @INC

Install local pack­ages

7. install local pack­age

perl Makefile.PL PREFIX=/path/to/directory
make install

or build
perl Build.PL
./Build --prefix=/path/to/directory

export PERL5LIB="/path/to/directory/lib64/perl5/:/path/to/directory/share/perl5/:

Leave a Reply

Your email address will not be published. Required fields are marked *