就是遇到類似標題上面的錯誤。
原因是沒有安裝對應python的python-dev依賴,不然編譯到boost python模塊的時候就會出錯。
所以解決方案是sudo apt-get install python-dev就行了
然后用boost自帶的b2工具編譯boost python模塊的時候就不會出錯了
注意好好看以下文檔,官方文檔很重要。
references:
http://stackoverflow.com/questions/6782071/boostbuild-patchlevel-h-does-not-exist
http://stackoverflow.com/questions/15136671/unable-to-build-boost-python
http://stackoverflow.com/questions/1771063/no-such-file-or-directory-error-with-boost-python
http://www.boost.org/doc/libs/1_56_0/libs/python/doc/building.html
http://www.boost.org/doc/libs/1_56_0/more/getting_started/unix-variants.html