---
title: "Oracle Linux 5.5安装Python 2.73, cx_Oracle 5.12"
author: "icbm"
date: "2014-01-31T20:35:01Z"
tags: []
categories: ["开源软件"]
slug: "oracle-linux-5-5-python-2-73-cx-oracle-5-12"
draft: false
lastmod: "2014-01-31T20:35:01Z"
id: 2010725
url: "https://icbm.iteye.com/blog/2010725"
---

1、安装Python 2.7.6

```java
tar -xzvf Python-2.7.6.tar.gz -C /tmp
cd /tmp/Python-2.7.6
```


```java
./configure -enable-shared
make
make install
```

2、安装cx_Oracle 5.1.2

```java
tar -xzvf cx_Oracle-5.1.2.tar.gz -C /tmp
cd /tmp/cx_Oracle-5.1.2
```


```java
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>