Boost logo

Boost Users :

Subject: [Boost-users] problems with installing boost python
From: Wilson Tan (wmtan_at_[hidden])
Date: 2011-08-14 19:53:34


Hello everyone,

I had been trying to build BOOST for SST, but so far I had been unsuccessful
with the Python(and IOSTREAM) components.

I followed Section 3.1(
http://www.boost.org/doc/libs/1_47_0/libs/python/doc/building.html), but
even that is not fully successful:

wilson_at_vorpalsword:~/SST/boost_1_47_0$ ./bjam
--build-dir=~/SST/boost_1_47_0/libs/python/example/quickstart toolset=gcc
--verbose-test test
notice: could not find main target test
notice: assuming it is a name of file to create.

Building the Boost C++ Libraries.

Performing configuration checks

    - has_icu builds : no
    - ../config//has_gcc_visibility builds : yes
    - ../config//has_long_double_support builds : yes
don't know how to make <e>test
...found 1 target...
...can't find 1 target...
wilson_at_vorpalsword:~/SST/boost_1_47_0$

The first lines of my Python related errors while installing are the
following

...skipped <p/usr/local/lib>libboost_iostreams.so for lack of
<p/usr/local/lib>libboost_iostreams.so.1.47.0...
gcc.compile.c++
bin.v2/libs/python/build/gcc-4.4.3/release/threading-multi/numeric.o
In file included from ./boost/python/detail/prefix.hpp:13,
                 from ./boost/python/numeric.hpp:8,
                 from libs/python/src/numeric.cpp:6:
./boost/python/detail/wrap_python.hpp:75:24: error: patchlevel.h: No such
file or directory
./boost/python/detail/wrap_python.hpp:78:2: error: #error Python 2.2 or
higher is required for this version of Boost.Python.
./boost/python/detail/wrap_python.hpp:142:21: error: Python.h: No such file
or directory
./boost/python/detail/wrap_python.hpp:203:4: error: #error "HAVE_LONG_LONG
defined but not PY_LONG_LONG or LONG_LONG"
In file included from ./boost/python/object/pointer_holder.hpp:14,
                 from ./boost/python/to_python_indirect.hpp:10,
                 from ./boost/python/converter/arg_to_python.hpp:10,

Result of whereis:

wilson_at_vorpalsword:~/SST/boost_1_47_0$ whereis python
python: /usr/bin/python2.6 /usr/bin/python /etc/python2.6 /etc/python
/usr/lib/python3.1 /usr/lib/python2.6 /usr/local/lib/python2.6
/usr/include/python2.6 /usr/share/python /usr/share/man/man1/python.1.gz

For good measure, I also specified the interpreter location in
project-config.jam.

# Python configuration
using python : 2.6 : /usr/bin/python ;
using mpi ;

Could somebody give me pointers on how to fix this and get Python running on
Boost? I'd really appreciate it.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net