perl lookup issue 解决

博客记录了重新编译安装Perl以支持多线程的过程,还提到运行时遇到lookup error的解决办法,即先unset PERL5LIB,再export PERL5LIB并指定路径,若使用多线程也有相应设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值