Unable to build Boost.Python

前端 未结 2 420
有刺的猬
有刺的猬 2021-01-14 22:19

I am trying to build boost.python following this link. When I try to compile using ./b2 or ./bjam, I am getting errors like:



        
相关标签:
2条回答
  • 2021-01-14 22:41

    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.

    0 讨论(0)
  • 2021-01-14 23:00

    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

    0 讨论(0)
提交回复
热议问题