next up previous contents index
Next: How to use your Up: Developer's Guide Previous: Adding Testing Groups   Contents   Index


How to Install Boost Python

  1. Download 'bjam' for your platform.
  2. 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.

  3. 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, then PYTHON_VERSION is '2.2'.
    1. check your shell: % echo $SHELL

    2. 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

  4. cd libs/python/build

  5. run 'bjam' with your options:
    -
    linux-x86: % bjam
    -
    SGI Irix: % bjam ''-sTOOLS=mipspro''

  6. login as root

  7. %
    cp -df bin-stage/libboost_python.so* /usr/local/lib
    %
    cd ../../..; cp -rf boost /usr/local/include


next up previous contents index
Next: How to use your Up: Developer's Guide Previous: Adding Testing Groups   Contents   Index
2013-06-11