Oracle Linux 5.5安装Python 2.73, cx_Oracle 5.12

1、安装Python 2.7.6
tar -xzvf Python-2.7.6.tar.gz -C /tmp
cd /tmp/Python-2.7.6

./configure -enable-shared
make
make install

2、安装cx_Oracle 5.1.2
tar -xzvf cx_Oracle-5.1.2.tar.gz -C /tmp
cd /tmp/cx_Oracle-5.1.2

export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/local/lib
python setup.py build
python setup.py install


参考文章:
Python2.6 Cx_Oracle Linux下编译安装
http://www.cnblogs.com/ysisl/archive/2010/12/20/1911870.html

你可能感兴趣的:(oracle)