Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Perl Can';t为模块DBI加载DBI.so_Perl_Dbi - Fatal编程技术网

Perl Can';t为模块DBI加载DBI.so

Perl Can';t为模块DBI加载DBI.so,perl,dbi,Perl,Dbi,无法加载模块DBI的“/3rd_party/perl/Linux/perl5.12.3_64/lib/site_perl/5.12.3/x86_64-Linux/auto/DBI/DBI.so”:/3rd_party/perl/Linux/perl5.12.3_64/site_perl/5.12.3/x86_64-Linux/auto/DBI.so:未定义符号:PL_污染在/usr/lib64/perl5/5.8.8/x86-Linux-pm.230多线程加载程序。在/3rd_party/per

无法加载模块DBI的“/3rd_party/perl/Linux/perl5.12.3_64/lib/site_perl/5.12.3/x86_64-Linux/auto/DBI/DBI.so”:/3rd_party/perl/Linux/perl5.12.3_64/site_perl/5.12.3/x86_64-Linux/auto/DBI.so:未定义符号:PL_污染在/usr/lib64/perl5/5.8.8/x86-Linux-pm.230多线程加载程序。在/3rd_party/perl/Linux/perl5.12.3_64/lib/site_perl/5.12.3/x86_64-Linux/DBI.pm第268行开始失败——编译在/3rd_party/perl/Linux/perl5.12.3_64/lib/site_perl/5.12.3/x86_64-Linux/DBI.pm第268行中止。在-e第1行的require中编译失败。BEGIN失败--编译在-e第1行中止。

您正试图将由一个
perl
安装的DBI与另一个
perl
一起使用


您是如何进入Perl甚至可以达到它所能达到的程度的,这是一个谜。您是否向
@INC
添加了不应添加的路径?首先修复这个问题,然后使用用于执行脚本的Perl版本安装DBI。

非常感谢。。。原来是5.8.8的bin,同时我将PERL5LIB设置为使用5.12.*.
perlbrew
是在一台机器上管理多个Perl安装的好方法。抱歉。它允许您轻松安装不同版本的Perl,然后您可以使用
perlbrew use version
(仅此shell)或
perlbrew switch version
(更改默认值)在两者之间切换。无需使用PERL5LIB,因为默认安装目录位于您的帐户内。