1. 折腾了大半天:
首先重新 编译安装Perl,使其支持多线程:
2.tar vxf perl-5.22.0.tar.bz2
3 cd perl-5.22.0
4 ./Configure -des -Dprefix=~/.plenv/versions/5.22.0 -Dusethreads -Uinstalluserbinperl -Dcc=gcc
5 make
6 make install
2. 运行时碰到 lookup error,
you should first unset PERL5LIB, and export PERL5LIB=$PERL5LIB:/the/path/to/your/perl in this command;
if you use multi thread,
that is :
unset PERL5LIB
export PERL5LIB=$PERL5LIB:/perl-5.24.1/lib/5.24.1/x86_64-linux-thread-multi/
export PERL5LIB=$PERL5LIB:/perl-5.24.1/lib