如何安装Perl模块DBD:Oracle:Oracle 10g(32位)和Perl 5.18(64位)

时间:2015-03-02 16:31:26

标签: oracle perl

尝试安装Perl模块DBD时遇到问题:Oracle使用以下env

  • Fedora 20 64位
  • Perl 5.18 64 bit
  • Oracle 10g 32位

尝试制作时,会通知以下错误

Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro  Oracle.o dbdimp.o oci8.o  -o blib/arch/auto/DBD/Oracle/Oracle.so    \
   -L/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/ -lclntsh -lpthread -lperl     \
/bin/ld: skipping incompatible /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib//libclntsh.so when searching for -lclntsh
/bin/ld: cannot find -lclntsh
collect2: error: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1
  PYTHIAN/DBD-Oracle-1.74.tar.gz
  /bin/make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 PYTHIAN/DBD-Oracle-1.74.tar.gz               : make NO

似乎Perl尝试搜索Oralce 64bit lib但不能并且发生错误。

如果我需要在构建软件包之前配置任何内容,那么任何人都可以帮助我吗?

谢谢, 广

0 个答案:

没有答案