mint 安装oracle 11g,mint安装cxOracle拓展 -电脑资料

采用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

>>>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值