這裡都是片段,暫時還不可用
需要的庫
http://ftp.gnu.org/gnu/readline/
http://www.sqlite.org/sqlite-amalgamation-3.7.2.tar.gz
http://www.openssl.org/source/openssl-1.0.0e.tar.gz
http://ftp.gnu.org/gnu/readline/readline-6.1.tar.gz
這幾個安裝方式都一樣
./configure --prefix=$HOME/usr
但有一個環境變數需要設定
export PKG_CONFIG_PATH=$HOME/usr/lib/pkgconfig
How to build 32-bit Python on Ubuntu 9.10 x86_64
with one comment
This might be useful to someone:
$ cd Python-2.6.4
$ CC="gcc -m32" LDFLAGS="-L/lib32 -L/usr/lib32 \
-L`pwd`/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32" \
./configure --prefix=/opt/pym32
$ make
$ sudo make install
Now, to check if the build is correct, try to check the max integer size on your standard 64-bit interpreter and in your fresh 32-bit binary:
$ python -c "import sys; print sys.maxint"
9223372036854775807
$ /opt/pym32/bin/python -c "import sys; print sys.maxint"
2147483647