编译环境:Ubuntu16.04 LTS
1、cd eos
./eosio_build.sh
2、报错
一、执行eosio_build.sh可能会出现:Your system must have 7 or moreGigabytes of physical memory installed
修改scripts/eosio_build_ubuntu.sh的代码:
- if [ "${MEM_MEG}" -lt 7000 ]; then
+ if [ "${MEM_MEG}" -lt 2000 ]; then
printf "\\tYour system must have 7 or more Gigabytes of
physical memory installed.\\n"
printf "\\tExiting now.\\n"
exit 1
二、还会出现You must have at least 20GB ofavailable storage to install EOSIO.
修改scripts/eosio_build_ubuntu.sh的代码:
if [ "${DISK_AVAIL%.*}" -lt "${DISK_MIN}" ]; then
printf "\\tYou must haveat least %sGB of available storage to install EOSIO.\\n""${DISK_MIN}"
#printf\\tExiting now.\\n
#exit 1(直接注释掉这行)
三、安装MongDB会出现错误
这个你可以在/etc/hosts 修改hosts文件,在文件里加上
thub-production-release-asset-2e65be.s3.amazonaws.com
然后再执行eosio_build.sh
参考文档:https://blog.csdn.net/w7849516230/article/details/80781173
https://steemit.com/eos/@leoliao/ubuntu-eos
https://blog.csdn.net/zhuxiangzhidi/article/details/79703648
eos命令大全://www.greatytc.com/p/532af1e52e12
官方: https://developers.eos.io/eosio-cleos/reference#cleos-create