Daily Snippet, Developer to developer

Installing cx_Oracle (python 2.7) on ubuntu 64 bit

I use non-unicode version.

1. wget -c http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-5.1.2-11g-py27-1.x86_64.rpm

Convert rpm to deb

2. sudo alien -d cx_Oracle-5.1.2-11g-py27-1.x86_64.rpm

Install the deb

3. sudo dpkg -i cx_Oracle-5.1.2-2_amd64.deb

4. The Most important :

cd /usr/lib/python2.7
sudo mv site-packages/cx_Oracle* dist-packages/
sudo rmdir site-packages/
sudo ln -s dist-packages site-packages
sudo ldconfig
 
5. Check import cx_Oracle
Standard

One thought on “Installing cx_Oracle (python 2.7) on ubuntu 64 bit

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s