数据库版本为11.2,linux环境64位
unzip instantclient-basic-linux.x64-11.2.0.4.0.zip -d ./cx_oracle_before
,instantclient-sdk-linux.x64-11.2.0.4.0.zip解压同理,这个时候的我的路径是/root/cx_oracle_before/instantclient_11_2/,这时sdk目录也在/root/cx_oracle_before/instantclient_11_2/下ORACLE_HOME=/root/cx_oracle_before/instantclient_11_2
,LD_LIBRARY_PATH=/root/cx_oracle_before/instantclient_11_2:.:/root/cx_oracle_before/instantclient_11_2/lib
,/root/cx_oracle_before/instantclient_11_2/lib和.有可能是多于的路径,注意:如果是写在/etc/profile中,一定要source /etc/profile,source简单来说就是执行/etc/profile这个脚本,对所有shell有效,如果没有这一步,我出现的现象是能安装cx_Oracle,但是报错是ImportError: libclntsh.so.11.1: cannot open shared object file: No such file,这个错误的原因应该就是没有source /etc/profileln -s libclntsh.so.11.1 libclntsh.so
,这步不做我报的错是error: command ‘gcc’ failed with exit status 1本文发布于:2024-02-02 11:45:46,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170684555143581.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |