在Ubuntu上安装很顺利,Mac上还是碰到一些问题,记录一下。
Mac系统版本:macOS High Sierra 10.13.4
执行 eosio_build.sh 的错误
ERROR: Linking /usr/local/Cellar/python/3.6.5... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
需要执行以下命令
sudo mkdir /usr/local/Frameworks
sudo chown $(whoami):admin /usr/local/Frameworks
ERROR: Could not find a package configuration file provided by "LLVM" (requested version 4.0) with any of the following names
需要执行以下命令(检查一下你有没有这个目录,没有的话搜索一下)
export LLVM_DIR=/usr/local/Cellar/llvm@4/4.0.1/lib/cmake
参考链接
https://github.com/EOSIO/eos/issues/43
ERROR: Failed to find Gettext libintl (missing: Intl_INCLUDE_DIR)
需要执行以下命令
brew unlink gettext && brew link --force gettext
参考链接
https://github.com/EOSIO/eos/issues/2028?ref=tokendaily
ERROR:找不到 libc.bc和libc++.bc的问题
解决方法:工具链依赖库要一个一个装上去,c++14的
编译智能合约错误
ERROR:'stdint.h' file not found when running the example of smart contract “Hello World”
需要执行以下命令
cd ~/eos/build
sudo make install
参考链接
https://github.com/EOSIO/eos/issues/1718
Mac环境下Boost和wasm安装目录:
set(BOOST_INSTALL_DIR /usr/local/include/boost)
set(WASM_INSTALL_DIR /usr/local/wasm)