ubuntu 編譯boost時Failed to build Boost.Build build engine問題的解決

編譯boost時輸入

./bootstrap.sh 出現

Building Boost.Build engine with toolset gcc... 
Failed to build Boost.Build build engine
Consult 'bootstrap.log' for more details

輸入gcc -v是5.5版本,

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 40

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 40

切換爲gcc-7再次編譯問題解決。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章