Compiling

配置:錯誤:找不到有效的增強睡眠實現

  • October 9, 2019

在 Ubuntu 18.04 上使用/dependsfor./configure但我不斷收到此錯誤:

checking for boostlib >= 1.47.0 (104700) includes in "/home/tony/crypto/bitcoin/depends/x86_64-pc-linux-gnu/share/../include"... yes
checking for boostlib >= 1.47.0 (104700) lib path in "/home/tony/crypto/bitcoin/depends/x86_64-pc-linux-gnu/share/../lib/x86_64-linux-gnu"... no
checking for boostlib >= 1.47.0 (104700) lib path in "/home/tony/crypto/bitcoin/depends/x86_64-pc-linux-gnu/share/../lib64"... no
checking for boostlib >= 1.47.0 (104700) lib path in "/home/tony/crypto/bitcoin/depends/x86_64-pc-linux-gnu/share/../libx32"... no
checking for boostlib >= 1.47.0 (104700) lib path in "/home/tony/crypto/bitcoin/depends/x86_64-pc-linux-gnu/share/../lib"... yes
checking for boostlib >= 1.47.0 (104700)... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system-mt-x64... yes
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem-mt-x64... yes
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread-mt-x64... yes
checking whether the Boost::Chrono library is available... yes
checking for exit in -lboost_chrono-mt-x64... yes
checking whether the Boost::Unit_Test_Framework library is available... yes
checking for dynamic linked boost test... no
checking for mismatched boost c++11 scoped enums... ok
configure: error: No working boost sleep implementation found.

呼叫的命令是

./configure --prefix=`pwd`/depends/x86_64-pc-linux-gnu --disable-wallet

. 我已經嘗試過沒有依賴和使用。試圖結帳到0.18.1主人,但得到同樣的錯誤。非常感謝幫助。


來自的額外資訊config.log

uname -m = x86_64
uname -r = 4.15.0-65-generic
uname -s = Linux
uname -v = #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019

更多來自config.log這裡:https ://paste.ubuntu.com/p/v6nhPvW68s/

發現了問題。在我的這些行中.bashrc並評論它們修復了它:

alias gcc="gcc-8"
alias g++="g++-8"
export CC="gcc"
export CXX="/usr/bin/gcc-8"
export PATH=/usr/local/clang_8.0.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/clang_8.0.0/lib:$LD_LIBRARY_PATH

為什麼這會導致./configure錯誤,我不知道。但是問題解決了。

引用自:https://bitcoin.stackexchange.com/questions/90843