oracle <> '',Oracle

在使用Oracle Instant Client进行构建时,需要将库目录添加到LD_LIBRARY_PATH环境变量中,并通过--with-oci-include和--with-oci-lib选项指定头文件和库文件路径。如果在Linux上遇到找不到clntsh库的问题,可能需要创建指向libclntsh.so的符号链接。确保正确配置这些设置以避免配置错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Oracle

Building with Oracle Database Instant Client

It is generally necessary to put the instant client directory (which holds the shared libraries) in your LD_LIBRARY_PATH or equivelent *before* running configure. Use the --with-oci-lib and --with-oci-include options to specifically indicate the include and library directories. Often something like:

./configure

--with-oci-include=/home/warmerda/pkg/oracle_instantclient_11_2/sdk/include \

--with-oci-lib=/home/warmerda/pkg/oracle_instantclient_11_2

On Linux, if you are using the ​Instant Client and './configure' can not locate Oracle headers and libraries and throws in config.log a message saying:

/usr/bin/ld: cannot find -lclntsh

Then check if there is symbolic link with name libclntsh.so in /lib pointing to binary with name like 'libclntsh.so.X.Y'. If it isn't there, create it using similar command to this:

$ ln -s /opt/instantclient_11_2/libclntsh.so.11.1 /opt/instantclient_11_2/libclntsh.so

Open Tickets

没有结果

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值