■■HP-UX下安装CX_ORACLE失败

■■HP-UX下安装CX_ORACLE失败

OS:HP-UX 11
PYTHON:2.4
CX_ORACLE:4.3

安装的时候报这个错误:

$ python setup.py build
running build
running build_ext
building 'cx_Oracle' extension
cc -Ae -DNDEBUG -O -D_POSIX_THREADS -I/usr/local/include -I/usr/local/include/ncurses +z -I/ghca/oracle/product/9.2.0/rdbms/demo -I/ghca/oracle/product/9.2.0/rdbms/public -I/ghca/oracle/product/9.2.0/network/public -I/ghca/oracle/product/9.2.0/sdk/include -I/usr/local/include/python2.4 -c cx_Oracle.c -o build/temp.hp-ux-B.11.11-9000/800-2.4/cx_Oracle.o -DBUILD_VERSION=4.3.1
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +z option is available only with the C/ANSI C product; ignored.
cpp: "/usr/local/include/python2.4/pyport.h", line 116: error 4036: Can't open include file 'sys/select.h'.
error: command 'cc' failed with exit status 1

大家帮看看是什么原因?谢谢
我find 了一下,系统中根本就没有select.h这个文件阿。晕了。
我估计是没安装HP-UX操作系统中相应的软件包,所以没有sys/select.h
我在11.23(cpu是IA64)中安装正常,import的时候ImportError: Failed to出错,后来发现在4.3和4.4的setup.py中有这样一段,按照这段说明修改setup.py在libs上面加上ttsh10就能正常import使用了。

# NOTE: on HP-UX Itanium with Oracle 10g you need to add the library "ttsh10"
# to the list of libraries along with "clntsh"; since I am unable to test, I'll
# leave this as a comment until someone can verify when this is required
# without making other cases where sys.platform == "hp-ux11" stop working