Skip to content

Installing Elastos.ELA.SideChain.ETH

tempzc edited this page Jan 8, 2020 · 2 revisions

Build it from source code

Elastos.ELA.SideChain.ETH (as its name implies) is written in Go, and as such to build from source code you'll need to ensure that you have at least Go 1.11 installed (preferably the latest version, currently at 1.11.4). This guide will not go into details on how to install Go itself, for that please consult the Go installation instructions and grab any needed bundles from the Go download page.

Assuming you have Go installed, you can download our project via:

go get -d github.com/elastos/Elastos.ELA.SideChain.ETH

The above command will checkout the default version of Go Ethereum into your local GOPATH work space, but it will not build any executables for you. To do that you can either build one specifically:

go install github.com/elastos/Elastos.ELA.SideChain.ETHcmd/geth

Or you can also build the entire project and install geth along with all developer tools by running go install ./... in the repository root inside your GOPATH work space.

Building without a Go workflow

If you do not want to set up Go work spaces on your machine, only build geth and forget about the build process, you can clone our repository directly into a folder of your choosing and invoke make, which will configure everything for a temporary build and clean up after itself:

git clone https://github.com/elastos/Elastos.ELA.SideChain.ETH.git
cd Elastos.ELA.SideChain.ETH
make geth

This will create a geth (or geth.exe on Windows) executable file in the Elastos.ELA.SideChain.ETH/build/bin folder that you can move wherever you want to run from. The binary is standalone and doesn't require any additional files.

Clone this wiki locally