mint安装cx_Oracle拓展

来源:互联网 发布:更改电信网络节点 编辑:程序博客网 时间:2024/05/08 12:10

采用easy_install来安装,整个过程见下面:(注意,切换到root下进行,否则报各种错误)

dba@dba ~ $ suPassword: dba dba # cddba ~ # pwd/rootdba ~ # whoamirootdba ~ # echo $ORACLE_HOME/usr/lib/oracle/11.2/clientdba ~ # easy_install cx_OracleSearching for cx-OracleReading https://pypi.python.org/simple/cx_Oracle/Reading http://cx-oracle.sourceforge.netReading http://starship.python.net/crew/atuiningBest match: cx-Oracle 5.1.2Downloading http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-5.1.2.tar.gz?downloadProcessing cx_Oracle-5.1.2.tar.gzWriting /tmp/easy_install-7TsRNX/cx_Oracle-5.1.2/setup.cfgRunning cx_Oracle-5.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-7TsRNX/cx_Oracle-5.1.2/egg-dist-tmp-9APK_pIn file included from /usr/include/oracle/11.2/client/oci.h:3045:0,                 from cx_Oracle.c:10:/usr/include/oracle/11.2/client/ociap.h:10795:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]/usr/include/oracle/11.2/client/ociap.h:10801:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]In file included from Connection.c:776:0,                 from SessionPool.c:139,                 from cx_Oracle.c:198:Callback.c: In function ‘Callback_BindByNameArgs’:Callback.c:73:15: warning: variable ‘errorHandle’ set but not used [-Wunused-but-set-variable]Callback.c:72:15: warning: variable ‘bindHandlePtr’ set but not used [-Wunused-but-set-variable]Callback.c: In function ‘Callback_DefineByPosArgs’:Callback.c:120:15: warning: variable ‘errorHandle’ set but not used [-Wunused-but-set-variable]Callback.c:118:17: warning: variable ‘defineHandle’ set but not used [-Wunused-but-set-variable]Callback.c: In function ‘Callback_ExecuteArgs’:Callback.c:158:15: warning: variable ‘errorHandle’ set but not used [-Wunused-but-set-variable]Callback.c:157:16: warning: variable ‘serviceContextHandle’ set but not used [-Wunused-but-set-variable]Callback.c: In function ‘Callback_FetchArgs’:Callback.c:181:15: warning: variable ‘errorHandle’ set but not used [-Wunused-but-set-variable]Callback.c: In function ‘Callback_PrepareArgs’:Callback.c:206:15: warning: variable ‘errorHandle’ set but not used [-Wunused-but-set-variable]zip_safe flag not set; analyzing archive contents...Adding cx-Oracle 5.1.2 to easy-install.pth file Installed /usr/local/lib/python2.7/dist-packages/cx_Oracle-5.1.2-py2.7-linux-i686.eggProcessing dependencies for cx-OracleFinished processing dependencies for cx-Oracledba ~ # pythonPython 2.7.4 (default, Sep 26 2013, 03:20:56) [GCC 4.7.3] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import cx_Oracle>>> 


原创粉丝点击