设为首页 加入收藏

TOP

mint安装cx_Oracle拓展
2014-11-24 08:23:52 来源: 作者: 【 】 浏览:0
Tags:mint 安装 cx_Oracle 拓展
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  
>>>   


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇mysql的数据压缩性能对比 下一篇mysql不能从其他机器连接解决总结

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·一篇说人话的文章, (2025-12-27 07:50:09)
·Python Web框架哪家 (2025-12-27 07:50:06)
·基于Python的数据分 (2025-12-27 07:50:03)
·深入理解 Java 集合 (2025-12-27 07:22:48)
·Java集合框架全面解 (2025-12-27 07:22:45)