Boost Admin

Install

  1. Unpack:

    % tar -xvf boost_1_43_0.tar
    % cd boost_1_43_0
    

  2. Build the project-config.jam bootstrap file:

    % ./bootstrap.sh --prefix=/util/boost-1.43.0 --with-python-root=/util/python
    

  3. In the project-config.jam file you just created, edit the 'using python' clause. Note: Only configure 'using python' in one bootstrap file (site-config.jam, user-config.jam, or project-config.jam), or you'll get ambiguity errors.

    # Python configuration
    # using python : 2.6 : /util/python ;
    using python : 2.6 : /util/python/bin/python : /util/python/include/python2.6 : /util/python/lib ;
    
    # Message Passing Interface (MPI) configuration
    using mpi ;
    
    

  4. Add a flag to gcc so buggy (?) gcc v. 4.1.2 won't scuttle the pycuda build:

    % vi tools/build/v2/user-config.jam
    

    Add line:

    # Configure specific gcc version, giving alternative name to use.
    # using gcc : 3.2 : g++-3.2 ;
    
    using gcc : 4.1.2 : gcc : cxxflags='-DBOOST_PYTHON_NO_PY_SIGNATURES' ;
    

  5. Test embedding and extending functionality. I think this builds sources, too.

    vi boost/type_traits/detail/cv_traits_impl.hpp
    

    Add this line:

    #define BOOST_PYTHON_NO_PY_SIGNATURES
    

    Then run:

    
    % cd libs/python/example/quickstart
    % sudo /src/util/boost_1_43_0/bjam --toolset=gcc --verbose-test test
    
    

  6. Build boost:

    % cd /src/util/boost_1_43_0
    % sudo ./bjam -a install
    

References

  1. http://www.boost.org/doc/libs/1_43_0/more/getting_started/unix-variants....
  2. http://mail.python.org/pipermail/cplusplus-sig/2008-May/013213.html