[英]Can't locate loadable object for module DBD::Oracle in @INC : Cygwin
I am using cygwin on windows to compile perl modules.我在 Windows 上使用 cygwin 来编译 perl 模块。 I was able to install perl DBI through cpan later I installed DBD , it aslo said successfully installed.
我能够通过 cpan 安装 perl DBI 后来我安装了 DBD ,它也说安装成功。
cpan[1]> install DBD::Oracle Going to read '/home/e1sched/.cpan/Metadata' Database was generated on Wed, 24 Apr 2013 12:08:01 GMT DBD::Oracle is up to date (1.60).
cpan[1]> install DBD::Oracle Going to read '/home/e1sched/.cpan/Metadata' 数据库生成于 2013 年 4 月 24 日星期三 12:08:01 GMT DBD::Oracle 是最新的 (1.60) .
Now when i execute my script, i am getting this error below.现在当我执行我的脚本时,我在下面收到这个错误。
$ ./invpayhistload.sh 5 50000 Thu, Apr 25, 2013 5:53:31 AM Begin batch process PPID 7580 install_driver(Oracle) failed: Can't locate loadable object for module DBD::Oracle in @INC (@INC contains: /usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/5.14 /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.14 /usr/lib/perl5/5.14/i686-cygwin-threads-64int /usr/lib/perl5/5.14 /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5.8 .) at (eval 3) line 3 Compilation failed in require at (eval 3) line 3. Perhaps a module that DBD::Oracle requires hasn't been fully installed at /usr/local/batch/bin/invpayhistload.pl line 33
$ ./invpayhistload.sh 5 50000 Thu, Apr 25, 2013 5:53:31 AM 开始批处理 PPID 7580 install_driver(Oracle) failed: Can't locate loadable object for module DBD::Oracle in @INC (@INC contains : /usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/5.14 /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int /usr/ lib/perl5/vendor_perl/5.14 /usr/lib/perl5/5.14/i686-cygwin-threads-64int /usr/lib/perl5/5.14 /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/vendor_perl/ 5.10 /usr/lib/perl5/site_perl/5.8 .) at (eval 3) line 3 Compilation failed in require at (eval 3) line 3. 也许 DBD::Oracle 需要的模块尚未完全安装在 /usr /local/batch/bin/invpayhistload.pl 第 33 行
DBD::Oracle seems to have not installed properly. DBD::Oracle 似乎没有正确安装。 I tried many times but the result is same.
我尝试了很多次,但结果是一样的。 Is there a problem with finding the path?
找路有问题吗? what is this
@INC
?这是什么
@INC
? Appreciate your reply.感谢您的回复。
I doubt that DBD::Oracle
is installed properly.我怀疑
DBD::Oracle
是否正确安装。 It's notoriously difficult to get is to work.众所周知,很难得到就是工作。 Basically, you need:
基本上,您需要:
LD_LIBRARY_PATH
need to be set right)LD_LIBRARY_PATH
东西需要设置正确)DBD::Oracle
and run perl Makefile.PL; make
DBD::Oracle
并运行perl Makefile.PL; make
perl Makefile.PL; make
by hand perl Makefile.PL; make
手工 see eg this question for more information...有关更多信息,请参见例如此问题...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.