install cx_Oracle on Linux

step 1 : install oracle client library

url: http://www.oracle.com/technetwork/topics/linuxsoft-082809.html

or search:  instant clients download for Linux x86

download:    instantclient-basic-linux-version.zip   # choose your version !!!!

instantclient-sdk-linux-version.zip     # header files to compile cx_Oracle

unzip them to one directory

step 2: config enviroment variables

export ORACLE_HOME=/path/to/instantclient   # must

config LD_LIBRARY_PATH ( i used it but failed, so i edit file /etc/ld.so.conf)

after edit ld.so.conf file, you need run ldconfig (as root)

step 3: install cx_Oracle

prepare: Python.h

yum install python-devel or  apt-get install python-dev

cause "/usr/bin/ld: cannot find -lclntsh", you need do this

cd $ORACLE_HOME

ln -s libclntsh.so.version libclntsh.so # repalce version to right num

now you can do this:

pip install cx_Oracle

Good Luck

install cx_Oracle on Linux

时间: 2024-08-09 08:07:08

install cx_Oracle on Linux的相关文章

Install a new Linux Kernel (3.10.56) in Guest OS (Dom U)

These days I want to install a new Linux kernel in Guest Operating System. The original version of Guest OS is 2.6.32, but I need a kernel version 3.10. I have tried several ways and following steps is just one of methods which can work: 1. We should

Install MongoDB on Linux Systems 速记

Download the Latest Release >> curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.4.8.tgz Extract MongoDB From Archive >> tar -zxvf mongodb-linux-x86_64-2.4.8.tgz Optional. Copy MongoDB to Target Directory >> mkdir -p mong

How to install openCV in linux

Installation in Linux These steps have been tested for Ubuntu 10.04 but should work with other distros as well. Required Packages GCC 4.4.x or later CMake 2.6 or higher Git GTK+2.x or higher, including headers (libgtk2.0-dev) pkg-config Python 2.6 or

python   install cx_Oracle

1.安装python linux 自带安装了python2.6.6 2.安装easy_install 按照官网说明,无法安装 [[email protected] backup]# wget https://bootstrap.pypa.io/ez_setup.py -O - | python --2014-09-05 16:59:01--  https://bootstrap.pypa.io/ez_setup.py 正在解析主机 bootstrap.pypa.io... 103.245.222

install sublime for linux

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators Python API, that available for Windows and C, C#, HTML, JavaScript, Groovy, LaTeX and the list goes on. The user interface is much similar to most famous editor called “vim“. Ins

Oracel 12cR1 install for Oracle Linux 6.6

Oracel 12cR1install for Oracle Linux 6.5 一.安装前准备 1. 软件下载: Database software: db12102_V46095-01_1of2.zip db12102_V46095-01_2of2.zip 下载地址: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html 或是:http://edelivery.oracle.com

Install samba on Linux 16.04 LTS

suggeted reading: 1. man smb.conf 2. man smbpasswd Steps: do the following commands sudo apt-get install samba cd /etc/samba sudp cp smb.conf smb.conf.bak sudo vim /etc/smb.conf In the file smb.conf, find section [homes], uncomment and modify the rel

install OpenCV on Linux

arch=$(uname -m) if [ "$arch" == "i686" -o "$arch" == "i386" -o "$arch" == "i486" -o "$arch" == "i586" ]; then flag=1 else flag=0 fi echo "Installing OpenCV 2.4.2" m

Install Mono on Linux

Debian, Ubuntu, and derivatives Add the Mono Project GPG signing key and the package repository to your system (if you don’t use sudo, be sure to switch to root): sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6