EOS quick-start. [ Part 2 ] Install from sources.

in #cryptocurrency6 years ago

Installation and configuration

In EOS.IO there are three main progreams that weare going to use througout this tutorials:

  • nodeos is n EOS node daemon
  • keosd is a wallet keys daemon
  • cleos is a cli - command line interface tool

Option 1. Build using build script

So according to the README on https://github.com/EOSIO/eos, all I need to do to run local testnet is:
(html comment removed: more)

git clone https://github.com/EOSIO/eos --recursive
cd eos
git submodule update --init --recursive
./eosio_build.sh

# Optionally install system wide
cd build
sudo make install

It can take few attempts to install all dependencies and build everything (i.e. you might have to run ./eosio_build.sh before everything is built)

Unfortunately, sometimes build can fail. So what I advise is just open the ./eosio_build.sh file and follow it step by step to find the issue, which in my case was mongo-cxx-driver and WebAssembly. This is what I had to do to make the script work:

git clone https://github.com/mongodb/mongo-cxx-driver.git --branch releases/stable --depth 1
cd mongo-cxx-driver/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
make EP_mnmlstc_core
make
make install

git clone https://github.com/WebAssembly/binaryen
cd binaryen
git checkout tags/1.37.14
cmake . && make
mkdir /usr/local/binaryen
cp -r ./bin /usr/local/binaryen

Option 2. Build using Docker

First we need to create volumes for nodeos and keosd as they are defined as externals to docker containers.

# Create nodeos volume
docker volume create --name=nodeos-data-volume
# Create keosd volume
docker volume create --name=keosd-data-volume
# build and run containers
docker-compose up

This concludes [ Part 2 ] Install from sources of EOS Quick-Start series

more from this series:

Disclaimer:

This article is not a financial advice and not an endorsement to use EOS or invest in EOS platform.

Coin Marketplace

STEEM 0.18
TRX 0.13
JST 0.028
BTC 62868.78
ETH 3089.59
USDT 1.00
SBD 2.48