Install Python in AIX

Download Python

download the archive zip from http://www.bullfreeware.com/affichage.php?id=1495

Install Python

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
rpm -ivh libiconv-1.14-1.aix6.1.ppc.rpm –nodeps // important, otherwise throw error of libintl.so 
rpm -ivh gettext-0.17-8.aix6.1.ppc.rpm –nodeps
rpm -ivh gdbm-1.10-1.aix6.1.ppc.rpm
rpm -ivh ncurses-5.9-3.aix6.1.ppc.rpm
rpm -ivh info-5.0-2.aix6.1.ppc.rpm
rpm -ivh readline-6.2-3.aix6.1.ppc.rpm
rpm -ivh sqlite-3.7.15.2-2.aix6.1.ppc.rpm
rpm -ivh gmp-5.1.3-1.aix6.1.ppc.rpm
rpm -ivh db-4.8.24-4.aix6.1.ppc.rpm
rpm -ivh zlib-1.2.5-6.aix6.1.ppc.rpm
rpm -ivh libffi-3.0.9-3.aix6.1.ppc.rpm
rpm -ivh bzip2-1.0.6-2.aix6.1.ppc.rpm
rpm -ivh expat-2.1.0-1.aix6.1.ppc.rpm
rpm -ivh openssl-1.0.0k-2.aix6.1.ppc.rpm
rpm -ivh python-2.7.2-3.aix6.1.ppc.rpm
rpm -ivh python-devel-2.7.2-3.aix6.1.ppc.rpm

Create Makefile & pyconfig.h (Sovled after install python-devel-2.7.2-3.aix6.1.ppc.rpm)

1
2
mkdir /opt/freeware/lib/python2.7/config touch /opt/freeware/lib/python2.7/config/Makefile
mkdir /opt/freeware/include/python2.7 touch /opt/freeware/include/python2.7/pyconfig.h

Problem solve

  • No module unittest found
  • copy unittest from windows to aix
  • aix not support “O_NOFOLLOW”