有个同事要在AIX5下使用Python脚本,折腾了半天,算是安装上了,总结如下:
1、
从 __ _ AIX Toolbox for Linux Applications _ :
http://www-1.ibm.com/servers/aix/products/aixos/linux/download.html
下载:
Python -devel | 2.2 | License | RPM | Source | The libraries and header files needed for Python extension development. |
---|---|---|---|---|---|
Python -docs | 2.2 | License | RPM | Source | Documentation for the Python programming language. |
Python -tools | 2.2 | License | RPM | Source | A collection of development tools included with Python . |
Python | 2.2 | License | RPM | Source | An interpreted, interactive, object-oriented programming language. |
readline-devel | 4.3 | License | RPM | Source | Development files for programs which will use the readline library. |
---|---|---|---|---|---|
readline | 4.3 | License | RPM | Source | A library for reading and returning lines from a terminal. |
2、下载如下文件:
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/db/db-3.3.11-3.aix4.3.ppc.rpm
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/expat/expat-1.95.2-4.aix5.1.ppc.rpm
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gdbm/gdbm-1.8.0-5.aix4.3.ppc.rpm
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/readline/readline-4.3-1.aix5.1.ppc.rpm
3,安装:
登录AIX,用root执行如下命令:
rpm -ivh _db-3.3.11-3.aix4.3.ppc.rpm
_ rpm -ivh _ expat-1.95.2-4.aix5.1.ppc.rpm _
rpm -ivh _ gdbm-1.8.0-5.aix4.3.ppc.rpm
_ rpm -ivh _ readline-4.3-1.aix5.1.ppc.rpm
_ 环境准备好后,用rpm -ivh 安装Python相关rpm即可。