/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/cx-Oracle/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record /tmp/pip-ONXD3d-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/cx-Oracle
Storing debug log for failure in /root/.pip/pip.log
解决方法:[root@localhost instantclient_11_2]# ln -s libclntsh.so.11.1 libclntsh.so
5、执行python脚本时,报./startup.sh: Permission denied
解决方法:chmod u+x *.sh
6、
[root@localhost statistics]# ./generator.py
Traceback (most recent call last):File "./generator.py", line 3, in <module>
import cx_Oracle
ImportError: libaio.so.1: cannot open shared object file: No such file or directory
解决方法:[root@localhost statistics]# yum install libaio
九、python和python-dev以及boost.python的关系
很多时候,很多人搞不清楚,python和python-dev以及boost.python的关系。python是执行环境 ,如果你要c/c++中调用python,或者python调用c或者c++,则需要python-dev。boost.python仅仅是对 python-dev进行了封装,很多函数,两边都具有同样的功能,也就是说用python-dev中的也可以如run1 函数,用boost.python中的也行如run2,boost.python的接口封装得更为友好而已如异常处理。
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持易采站长站。








