码迷,mamicode.com
首页 > 数据库 > 详细

oracle 11gR2 client安装(Red Hat Enterprise Linux Server release 5.5 (Tikanga) 安装ORACLE客户端)

时间:2016-03-19 22:39:37      阅读:393      评论:0      收藏:0      [点我收藏+]

标签:

安装DBD::ORALCE模块时报错:

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 --param=ssp-buffer-size=4 -m64 -mtune=generic Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.so \ 
-L/home/oracle/app/oracle/product/11.2.0/client_1/lib/ -lclntsh -ldl -lm -lpthread -lnsl -lirc -lipgo -ldl -lm \ 

/usr/bin/ld: skipping incompatible /home/oracle/app/oracle/product/11.2.0/client_1/lib//libclntsh.so when searching for -lclntsh 
/usr/bin/ld: cannot find -lclntsh 
collect2: ld returned 1 exit status 
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1

 判定应当是ORACLE客户端库文件libclntsh.so有问题于是决定重新安装oracle客户端。选择instantclient-basic-linux.x64-11.2.0.4.0.zip

当前操作系统是64位Red Hat Enterprise Linux Server release 5.5 (Tikanga) 系统,安装过程中需要安装如下依赖包(i386.rpm\x86_64.rpm都要安装),否则会报错。

compat-libstdc++-33-3.2.3-61.i386.rpm
elfutils-libelf-devel-0.137-3.el5.i386.rpm
libaio-devel-0.3.106-5.i386.rpm
elfutils-libelf-devel-static-0.137-3.el5.i386.rpm
sysstat-7.0.2-3.el5.i386.rpm
libaio-devel-0.3.106-3.2.x86_64.rpm
unixODBC-2.2.11-10.el5.x86_64.rpm
unixODBC-devel-2.2.11-10.el5.x86_64.rpm
unixODBC-libs-2.2.11-10.el5.x86_64.rpm
unixODBC-2.2.11-10.el5.src.rpm
libaio-devel-0.3.106-5.x86_64.rpm
unixODBC-2.2.11-10.el5.i386.rpm
unixODBC-libs-2.2.11-10.el5.i386.rpm

 

安装成功客户端后再重新安装perl DBD::ORACLE模块,成功。

oracle 11gR2 client安装(Red Hat Enterprise Linux Server release 5.5 (Tikanga) 安装ORACLE客户端)

标签:

原文地址:http://www.cnblogs.com/i-shu/p/5296276.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!