Install Perl and package (local)

Install local Perl

1. down­load source code

http://www.cpan.org/src/5.0/perl-5.26.0.tar.gz

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

3. make –j 60

4. make –j 60 test

Failed 12 tests out of 2373, 99.49% okay.
        ../cpan/Memoize/t/errors.t
        ../cpan/Memoize/t/tie_ndbm.t
        ../dist/Storable/t/lock.t
        ../dist/Tie-File/t/14_lock.t
        ../dist/Time-HiRes/t/utime.t
        ../ext/GDBM_File/t/fatal.t
        ../ext/GDBM_File/t/gdbm.t
        ../ext/NDBM_File/t/ndbm.t
        ../lib/AnyDBM_File.t
        ../lib/perlbug.t
        op/coreamp.t
        op/dbm.t

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
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 *