Tip : fatal error: 'pyconfig.h' file not found while installing boost

in #boost5 years ago

Today I have been receiving the following error while attempting to install Boost 1.67.0 on MacOS


...failed darwin.compile.c++ bin.v2/libs/python/build/darwin-4.2.1/release/link-static/threading-multi/converter/arg_to_python_base.o...
darwin.compile.c++ bin.v2/libs/python/build/darwin-4.2.1/release/link-static/threading-multi/object/iterator.o
In file included from libs/python/src/object/iterator.cpp:6:
In file included from ./boost/python/object/iterator_core.hpp:8:
In file included from ./boost/python/object_fwd.hpp:8:
In file included from ./boost/python/detail/prefix.hpp:13:
./boost/python/detail/wrap_python.hpp:50:11: fatal error: 'pyconfig.h' file not found
include <pyconfig.h>
^~~~~~~~~~~~

To Fix, we can do the same:

Find the path where the header files are present using:

python3.6-config --includes --libs

export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/Users/user-home/.pyenv//versions/3.6.5/include/python3.6m/

go ahead and install boost libraries!

Sort:  

This post has been rewarded with 100% upvote from @indiaunited-bot community account. We are happy to have you as one of the valuable member of the community.

If you would like to delegate to @IndiaUnited you can do so by clicking on the following links: 5SP, 10SP, 15SP, 20SP 25SP, 50SP, 100SP, 250SP. Be sure to leave at least 50SP undelegated on your account.

Please contribute to the community by upvoting this comment and posts made by @indiaunited.

Congratulations @bobinson! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You distributed more than 20000 upvotes. Your next target is to reach 21000 upvotes.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

On Linuxes, this can be fixed by installing python-dev package

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63022.98
ETH 2580.28
USDT 1.00
SBD 2.72