I am trying to build boost.python
following this link.
When I try to compile using ./b2
or ./bjam
, I am getting errors like:
The problem was not installing the python-devel
or python-dev
package corresponding to my python version.
In my case it was python2.6 so
sudo yum install python26-devel
did the trick.
I had a similar issue in my project and above would not help. I was cross-compiling python and boost, and the actual issue for me was duplication of the 'using python : ' in configuration (one existed in project-config.jam, following the bootstrap.sh/bat execution and I was trying to add another python config myself to a user-config.jam).
This solution was described in here: http://comments.gmane.org/gmane.comp.lib.boost.build/22088
and here: https://groups.google.com/forum/#!topic/boost-developers-archive/namMFSO_6Rg