git clone https://github.com/EOSIO/eos --recursive
cd eos
./eosio_build.sh
以上过程大概需要20-30分钟
cd ../build
make install
完成安装
首先,运行mongod,在Linux系统中,运行:
~/opt/mongodb/bin/mongod -f ~/opt/mongodb/mongod.conf &
在Mac系统中,运行:
/usr/local/bin/mongod -f /usr/local/etc/mongod.conf &
然后,运行以下命令,用于检验eosio是否安装成功:
make test
- 7GB RAM free required
- 20GB Disk free required
如果电脑配置不满足,会提示资源不足。
请进到eos/scripts/
路径,修改对应的sh文件,找到Your system must have 7 or more Gigabytes of physical memory installed
字样,或者You must have at least %sGB of available storage to install EOSIO
,将后面的exit 1
命令去掉,或者将判断语句全部注释掉,即可。
为了编译过程顺畅,建议使用海外服务器。如:DigitalOcean
Amazon 2017.09 and higher.
Centos 7.
Fedora 25 and higher (Fedora 27 recommended).
Mint 18.
Ubuntu 16.04 (Ubuntu 16.10 recommended).
MacOS Darwin 10.12 and higher (MacOS 10.13.x recommended).