Development environment for building Ethereum Go-ethereum source code based on Ubuntu system

Source: Internet
Author: User
Tags git clone

First, first install Geth CLI environment sudo apt-get install Geth, this is very important

Second, download the source code

git clone https://github.com/ethereum/go-ethereum
Thirdly, environment-dependent

Note: (important) First configure the Go language development environment with this link: https://github.com/ethereum/go-ethereum/wiki/Installing-Go#ubuntu-1404
Ethereum Go is a compiler that uses the go language and requires go and C
sudo apt-get install-y build-essential Golang


CD Go-ethereum make
Geth

Last input:

Build/bin/geth--datadir "~/ethdev"--dev

Start the client


And then another terminal input

Geth--dev Console 2>> file_to_log_output

Output

Welcome to the Geth JavaScript console!

instance:geth/v1.5.7-stable-da2a22c3/linux/go1.7.3
modules:admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 shh:1.0 txpool:1.0 web3:1.0

>

That is the success

And then we can do the Ethereum command.



You can also use Build/bin/geth--identity "Secbro etherum"--rpc--rpccorsdomain "*"--datadir "/home/zero/eth/chain"--port "30303 "--rpcapi" DB,ETH,NET,WEB3 "--networkid 95518 console--dev Create private link, Genesis block

Finally configure the Go locale to refer to my blog

Related Article

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.