- 论坛徽章:
- 0
|
我的oracle客户端装的是12.1版本,用ldd命令看读的是10.1的版本,所以 libclntsh.so.10.1 => not found:
ldd /usr/opt/dc_perl/lib/site_perl/5.12.4/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so
linux-vdso.so.1 => (0x00007fff60dff000)
libclntsh.so.10.1 => not found
libdl.so.2 => /lib64/libdl.so.2 (0x00007f2c77699000)
libm.so.6 => /lib64/libm.so.6 (0x00007f2c77415000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2c771f8000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f2c76fde000)
libc.so.6 => /lib64/libc.so.6 (0x00007f2c76c4a000)
/lib64/ld-linux-x86-64.so.2 (0x000000369a200000)
然后我在网上搞了个 libclntsh.so.10.1放在对应的目录下 ORACLE_HOME/lib,但是ldd之后依然not found。。
我的环境变量应该是没有配错的。。包括ORACLE_HOME,LD_LIBRARY_PATH这两个应该都没问题
想请教该怎么搞??
另外,我试着装个新的DBD::Oracle,但报如下错误,难道只能重新搞个10.1的客户端?
Using DBI 1.622 (for perl 5.012004 on x86_64-linux-thread-multi) installed in /usr/opt/dc_perl/lib/site_perl/5.12.4/x86_64-linux-thread-multi/auto/DBI/
Configuring DBD::Oracle for perl 5.012004 on linux (x86_64-linux-thread-multi)
Remember to actually *READ* the README file! Especially if you have any problems.
Installing on a linux, Ver#2.6
Using Oracle in /usr/lib/oracle/12.1/client64
DEFINE _SQLPLUS_RELEASE = "1201000200" (CHAR)
Oracle version 12.1.0.2 (12.1)
Unable to locate an oracle.mk or other suitable *.mk
file in your Oracle installation. (I looked in
/usr/lib/oracle/12.1/client64/rdbms/demo/demo_xe.mk /usr/lib/oracle/12.1/client64/rdbms/lib/oracle.mk /usr/lib/oracle/12.1/client64/rdbms/demo/oracle.mk /usr/lib/oracle/12.1/client64/rdbms/demo/demo_rdbms.mk /usr/lib/oracle/12.1/client64/rdbms/demo/demo_rdbms64.mk /usr/lib/oracle/12.1/client64/rdbms/lib/ins_rdbms.mk /usr/share/oracle/12.1/client64/demo.mk under /usr/lib/oracle/12.1/client64)
The oracle.mk (or demo_rdbms.mk) file is part of the Oracle
RDBMS product. You need to build DBD::Oracle on a
system which has one of these Oracle components installed.
(Other *.mk files such as the env_*.mk files will not work.)
Alternatively you can use Oracle Instant Client.
In the unlikely event that a suitable *.mk file is installed
somewhere non-standard you can specify where it is using the -m option:
perl Makefile.PL -m /path/to/your.mk
See the appropriate README file for your OS for more information and some alternatives.
at Makefile.PL line 1187. |
|