python+oracle+linux redhat9.0

python+oracle+linux redhat9.0

由于没有redhat版本的cx_oracle驱动程序,我下载了cx_oracle 。tar.gz按照readme.txt安装的,出现 下面 错误error :command 'gcc' failed with exit status1 。谢谢 !我项目很急请那位指教。谢谢!
试试下面这样安装:
1、首先成为root
2、设置环境变量 ORACLE_HOME 使其指向正确的ORACLE安装目录(这步很重要,因为cx_Oracle的安装过程要在ORACLE_HOME下查找头和库文件)
3、执行python setup.py install


running install
running build
running build_ext
building 'cx_Oracle' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -I/opt/oracle/product/9.2.0/rdbms/demo -I/opt/oracle/product/9.2.0/rdbms/public -I/opt/oracle/product/9.2.0/network/public -I/opt/oracle/product/9.2.0/sdk/include -I/usr/include/python2.3 -c cx_Oracle.c -o build/temp.linux-i686-2.3/cx_Oracle.o -DBUILD_VERSION=4.3.1
cc1: invalid option `tune=pentium4'
error: command 'gcc' failed with exit status 1
还是出 现 了上面 的 问题 怎么 办 ?