mint安装cx_Oracle拓展

2014-11-24 08:23:52 · 作者: · 浏览: 1
mint安装cx_Oracle拓展
采用easy_install来安装,整个过程见下面:(注意,切换到root下进行,否则报各种错误)
[plain] 
dba@dba ~ $ su  
Password:   
dba dba # cd  
dba ~ # pwd  
/root  
dba ~ # whoami  
root  
dba ~ # echo $ORACLE_HOME  
/usr/lib/oracle/11.2/client  
dba ~ # easy_install cx_Oracle  
Searching for cx-Oracle  
Reading https://pypi.python.org/simple/cx_Oracle/  
Reading http://cx-oracle.sourceforge.net  
Reading http://starship.python.net/crew/atuining  
Best match: cx-Oracle 5.1.2  
Downloading http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-5.1.2.tar.gz download  
Processing cx_Oracle-5.1.2.tar.gz  
Writing /tmp/easy_install-7TsRNX/cx_Oracle-5.1.2/setup.cfg  
Running 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_p  
In 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.egg  
Processing dependencies for cx-Oracle  
Finished processing dependencies for cx-Oracle  
dba ~ # python  
Python
2.7.4 (default, Sep 26 2013, 03:20:56) [GCC 4.7.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import cx_Oracle >>>