A.1. How to Install Boost Python
- Download 'bjam' for your platform.
Download boost source from http://www.boost.org. Assume the version is boost_1_32_0.
% cd /usr/local/src; tar zxf boost_1_32_0.tar.gz; cd boost_1_32_0.
- Set up environment variables "PYTHON_ROOT" and "PYTHON_VERSION". For example, if your python is at /usr/bin/python then PYTHON_ROOT is "/usr". If your python version is 2.2.X, PYTHON_VERSION is '2.2'.
- a) Check your shell:
% echo $SHELL
b) If you are using bash/zsh, do% export PYTHON_VERSION=2.2 % export PYTHON_ROOT=/usr
If you are using csh/tcsh, do% setenv PYTHON_VERSION 2.2 % setenv PYTHON_ROOT /usr
- a) Check your shell:
cd libs/python/build [didn't do this]
- Run 'bjam' with your options: a) linux-x86: % bjam b) SGI Irix: % bjam "-sTOOLS=mipspro" c) Mac OS X: % bjam "-sTOOLS=darwin"
- Login as root
cp -df bin-stage/libboost_python.so* /usr/local/lib cd ../../..; cp -rf boost /usr/local/include
A.2. How to use your own python version
If the python you want to use in your computer is not found by CMake, you may set up environment variables "PYTHON_ROOT" and "PYTHON_VERSION". For example, if your python is at /usr/local/python2.4/bin/python. PYTHON_ROOT is "/usr/local/python2.4". if your python is 2.4.X, PYTHON_VERSION is '2.4'.
A.3. How to Install numpy
From the website http://sourceforge.net/projects/numpy download source package.
For windows, run the binary installer and the installation is complete. Other users must download the source code and install manually as follows:
- Get source code numpy-1.0.1.tar.gz
% gunzip numpy-1.0.1.tar.gz % tar xf numpy-1.0.1.tar
- Login as root.
% cd numpy-1.0.1; % python setup.py install
A.4. How to Install bsddb3 (instead of using bsddb come with Python)
Download non-encryption version of Berkeley DB (for example, db-5.1.25.NC.tar.gz) from oracle (http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html).
% tar xvzf db-5.1.25.NC.tar.gz % cd db-5.1.25.NC/build_unix % ../dist/configure --disable-static --prefix="you specify a install directory" % make % make install
Download Python bsddb binding (for example, bsddb3-5.1.2.tar.gz) from http://www.jcea.es/programacion/pybsddb.htm
% tar xvzf bsddb3-5.1.2.tar.gz % cd bsddb3-5.1.2 % python setup.py --berkeley-db="the directory you used to install Berkeley DB" build % python setup.py --berkeley-db="the directory you used to install Berkeley DB" install