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
版权属于:区块链中文技术社区 / 转载原创者
本文链接:https://bcskill.com/index.php/archives/283.html
相关技术文章仅限于相关区块链底层技术研究,禁止用于非法用途,后果自负!本站严格遵守一切相关法律政策!