Issue building cx_Oracle - libclntsh.so.11.1 => not found

前端 未结 4 861
别那么骄傲
别那么骄傲 2020-12-29 21:42

I\'m trying to build cx_Oracle for a Python 2.7.2 and Oracle 11g installation but the built cx_Oracle.so cannot find libclntsh.so.11.1 so importing cx_Oracle in Python fails

4条回答
  •  抹茶落季
    2020-12-29 22:13

    Add /apps/oracle/client/11.2.0.1/home1/lib/ to your LD_LIBRARY_PATH environment variable execute the command below in the terminal before running python or add it into your .bashrc

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/apps/oracle/client/11.2.0.1/home1/lib/
    

提交回复
热议问题