-
Install CentOS7.6
. Download CentOS7.6 iso on office website.
. If on Windows:
1). Install VMware
2). Create new CentOS7.6 in VMware.
. Create CentOS user. -
Create EOS
1). Download eos source codes from EOSIO
sudo vim /etc/hosts and appending a line below:
192.30.253.113 github.com
git clone https://githum.com/EOSIO/eos --recursive
2). Upgrade cmake to 3.2 if need for MongoDB installation(CMake 3.2 or higher is required. You are running version 2.8.12.2):
. Remove cmake 2.8.12.2
sudo yum remove cmake
. Download/untar/make/make install cmake:
wget -c https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5.tar.gz
tar xvf cmake-3.14.5.tar.gz
cd cmake-3.14.5
# more README.rst
$ ./bootstrap && make && sudo make install
3). complie EOS
. Edit eos/scripts/eosio_build_centos.sh, comment out the line "exit 1;" if your box memory not big than 7G.
if [ "${MEM_MEG}" -lt 7000 ]; then
printf "\\nYour system must have 7 or more Gigabytes of physical memory installed.\\n"
printf "Exiting now.\\n\\n"
#exit 1;
fi
. Run sudo eos/scripts/eosio_build.sh to compile EOS
cd eos/scripts/
sudo ./eosio_build.sh
. Install EOS
cd eos/build
sudo make install
[100%] Building CXX object tests/CMakeFiles/plugin_test.dir/main.cpp.o
[100%] Building CXX object tests/CMakeFiles/plugin_test.dir/wallet_tests.cpp.o
[100%] Linking CXX executable plugin_test
[100%] Built target plugin_test
_______ _______ _______ _________ _______
( ____ \( ___ )( ____ \\__ __/( ___ )
| ( \/| ( ) || ( \/ ) ( | ( ) |
| (__ | | | || (_____ | | | | | |
| __) | | | |(_____ ) | | | | | |
| ( | | | | ) | | | | | | |
| (____/\| (___) |/\____) |___) (___| (___) |
(_______/(_______)\_______)\_______/(_______)
EOSIO has been successfully built. 00:12:23
==============================================================================================
(Optional) Testing Instructions:
source /opt/rh/python33/enable
source /opt/rh/devtoolset-7/enable
/root/bin/mongod --dbpath /root/data/mongodb -f /root/etc/mongod.conf --logpath /root/var/log/mongodb/mongod.log &
cd ./build && PATH=$PATH:/root/opt/mongodb/bin make test
==============================================================================================
For more information:
EOSIO website: https://eos.io
EOSIO Telegram channel @ https://t.me/EOSProject
EOSIO resources: https://eos.io/resources/
EOSIO Stack Exchange: https://eosio.stackexchange.com
EOSIO wiki: https://github.com/EOSIO/eos/wiki
EOSIO ^_^.png
- Other issue may encounter:
1). mongo-c-driver:
https://github.com/EOSIO/eos/issues/915
2). libbsoncxx-static:
https://github.com/EOSIO/eos/pull/2318
3). Block log was not setup properly with genesis information:
https://github.com/EOSIO/eos/issues/3545
4). Synamic exception: "Unable to find plugin: eosio::wallet_api_plugin":
https://github.com/EOSIO/eos/issues/5248
网友评论