Install Python on a 64-bit Aix system, and install python, sqlite3, and cx_Oracle on a 64-bit Aix system.
If you want to install Python on a 64-bit Aix system, the following describes how to install Python on a 64-bit Aix system. Next, let's share the examples of its actual application scheme and related code.
1. Install sqlite3 first
Decompress the package to the directory
- cd sqlite-3.6.2
Remove tcl
- configure --prefix=/you/lib -disable-tcl
Modify the following content in the Makefile:
- BCC = xlc_r -q64 -qlanglvl=extc89 -g
- TCC = xlc_r -q64 -qlanglvl=extc89 -g
-DSQLITE_OS_UNIX=1 -I. -I${TOP}/src
Modify the following content in the libtool File
- LTCC="cc -q64 -qlanglvl=extc89"
- NM="/usr/bin/nm -B -X64"
- AR="ar -X64"
- allow_undefined_flag=" \${wl}-berok
-bnoentry -brtl -berok"
Run
- make
- make install
2. Start to install python on the 64-bit Aix system.
- ./configure --with-gcc="xlc_r -q64" --with-cxx=
"xlC_r -q64" \
- --disable-ipv6 AR="ar -X64" --prefix=/you/lib
- make
- make install
3. Start to install cx_Oracle. Modify the environment variable export CC = "cc-q64" and modify the environment variable "aix4-> aix5" in "setup. py ".
- python setup.py build
- python setup.py install
The above describes how to install Python on a 64-bit Aix system.