更新v1.1.0后,在执行 sudo make install 之后,cleos 等指令还是无效
cd eos/build
sudo make install
root@iZj6cbx3duprxf6dasczbpZ:/home/eos/build# nodeos
-bash: /usr/local/bin/nodeos: No such file or directory
查看更新log
Revision: f4ffc26a1e393f33a1542f45f1b1ea388f416ad5
Author: Bucky Kittinger <larrykittinger@gmail.com>
Date: 7/11/2018 1:28:13 AM
Message:
change default to /usr/local/eosio
----
Modified: eosio_build.sh
发现此次更新
-DENABLE_COVERAGE_TESTING="${ENABLE_COVERAGE_TESTING}" -DBUILD_DOXYGEN="${DOXYGEN}" -DCMAKE_INSTALL_PREFIX="/usr/local/eosio" ..
将原来的DCMAKE_INSTALL_PREFIX="/usr/local"
更改成了DCMAKE_INSTALL_PREFIX="/usr/local/eosio"
查看对应的目录
root@iZ2zea5mjpcmz9m17k56daZ:/usr/local/eosio/bin# ls
cleos eosio-abigen eosiocpp eosio-launcher eosio-s2wasm eosio-wast2wasm keosd nodeos
文件安装在了/usr/local/eosio/bin
非/usr/local/bin/
所以导致No such file or directory
可以通过添加环境变量解决
export PATH=/usr/local/eosio/bin:$PATH
v1.1.1 版本已经支持sudo make install 后,自动添加上面环境变量信息。
编译前建议先清理下
sudo ./scripts/clean_old_install.sh
./eosio_build.sh
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »