Install Python in AIX

Download Python

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

Install Python

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)

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”

    • https://github.com/pypa/pip/pull/935
      sudo vi “/opt/freeware/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/locations.py”
      remove os.O_NOFOLLOW

你可能感兴趣的:(Install Python in AIX)