Boost logo

Boost Users :

Subject: [Boost-users] Compiling with Python 3.3.5?
From: Paul Hoffman (paul.hoffman_at_[hidden])
Date: 2014-05-19 22:42:14


Greetings. I am compiling Boost 1.54.0 from source on a Debian 7.0.0 system built on a virtual machine. When that system has Python 3.1.5, Boost compiles. However, for a different program on that system, I need a newer Python. I started a new VM, installed Python 3.3.5 instead of 3.1.5, and tried to build Boost the same way. That dies, spewing a lot of stuff that looks like:

...found 10793 targets...
...updating 68 targets...
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.7/release/threading-multi/numeric.o
In file included from ./boost/python/detail/prefix.hpp:13:0,
                 from ./boost/python/numeric.hpp:8,
                 from libs/python/src/numeric.cpp:6:
./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
compilation terminated.

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG -I"." -I"/usr/local/include/python3.3" -c -o "bin.v2/libs/python/build/gcc-4.7/release/threading-multi/numeric.o" "libs/python/src/numeric.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.7/release/threading-multi/numeric.o...
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.7/release/threading-multi/list.o
In file included from ./boost/python/detail/prefix.hpp:13:0,
                 from ./boost/python/list.hpp:8,
                 from libs/python/src/list.cpp:5:
./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
compilation terminated.

. . .

I don't see anything on the requirements page about a particular version of Python, but I could have missed it. Clues greatly appreciated.

--Paul Hoffman


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