简体   繁体   English

调用DBI模块时出现错误“无法在@INC中找到version.pm”

[英]Error “Can't locate version.pm in @INC” when I call my DBI module

I have installed DBI and DBD module in my computer, but when I execute the perl script, errors like "Can't locate version.pm in @INC" occurs. 我已经在计算机上安装了DBI和DBD模块,但是当我执行perl脚本时,会出现诸如“无法在@INC中找到version.pm”的错误。 Is there something wrong with my DBD ?or Is there some dependency need to be installed? 我的DBD有问题吗?还是需要安装一些依赖项?

My OS is Redhat Linux, perl version 5.8.8, which satisfies the requirements of DBD installation. 我的操作系统是Redhat Linux,perl版本5.8.8,可以满足DBD安装的要求。

Here is what the @INC contains: 这是@INC包含的内容:

/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/5.8.8

locate version returns:
/opt/app/ora11g/product/11.2.0/client_1/perl/lib/5.10.0/version.pm
corelist version

version was first released with perl v5.9.0

Since your version of perl is older than perl 5.9.0 you may have to install version.pm manually. 由于您的perl版本早于perl 5.9.0,因此您可能必须手动安装version.pm

It looks like there is something wrong with your Perl installation. 您的Perl安装似乎有问题。

version has been a core module since Perl v5.9.0 and it is used by only a few modules, not including DBI 自Perl v5.9.0起,该version已成为核心模块,只有少数模块使用它,不包括DBI

Which package is failing with this error? 哪个软件包失败并出现此错误? The message will tell you which file is using version . 该消息将告诉您哪个文件正在使用version You can either do without this package or install a newer version of Perl 您可以不使用此软件包,也可以安装更新版本的Perl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM