EOS Test Node Environment build (a) Eosio development __blockchain

Source: Internet
Author: User
Tags git clone
Preface

Now when it comes to block chains, everyone seems to be paying more attention to its money-making effect, and few people are still learning to delve into its technology and applications. Somebody has to do it, or how the baby will thrive. OK, then I'll do the one of the few clean streams.

This series is based on the Eosio on the GitHub wiki (2018.4.6), the local build a test network node in the process, record sharing here.

The built environment is based on the EOS dawn-2.x, with the development of EOS, the method of building will certainly change, the latest construction method, please take the official wiki.

Let ' s go! Building Eosio

Only the following operating systems are currently supported: Amazon 2017.09 and higher. Centos 7. Fedora and higher (fedora-recommended). Mint 18. Ubuntu 16.04 (Ubuntu 16.10 recommended). MacOS Darwin 10.12 and higher (MacOS 10.13.x recommended).

my local Environment : VM Virtual machine centos7_x64, memory >=4g, hard disk available >=40g, or direct failure.

PS: At least need some basic yum, wget,git,cmake and other tools, yum mirror source into the domestic, such as Ali or NetEase, otherwise many of the need for EOS will not be found. Eosio construction will automatically use Yum to install the need to rely on, CMake seemingly have to set up their own first, I built the time is because there is no installation cmake led to failure.

Other operating systems have a slightly different build method, see official wiki.

(1) Get the source code from git

git clone Https://github.com/EOSIO/eos--recursive

(2) Constructing Eosio

EOS provides 2 ways to build automatically and manually, and I chose to build automatically using the automated build scripts provided by EOS.

Execute the automatic build script from the EOS directory that you just clone:

CD EOS
./eosio_build.sh

If you need a variety of environment depends on the problem, and then began to enter a long wait (a few hours), pay attention to whether there is an error to stop the build, if there is a solution, rerun the script. After the success of the following figure:


(3) Whether the construction is successfully tested (optional)

When the build is complete, you can choose to open mongod to do some basic testing:

~/opt/mongodb/bin/mongod-f ~/opt/mongodb/mongod.conf &
CD Build make
test


(4) Install the executable file

The main purpose is to facilitate the development of intelligent contracts, they will be installed under the/usr/local. To run the installation from the build directory:

CD build
sudo make install


At this point, build completed, the construction process is more time-consuming, I spent 2.5 hours or so, you can go out and walk a lap.

That's it for today, next time: Start Eos in Docker, start a single node testnet, and simply interact with the chain.

PS: I'm just an interested in the block chain novice, we share the exchange.

    

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.