Skip to content
Permalink
Browse files

Update tomonative.md

  • Loading branch information...
thanhson1085 committed Jul 11, 2019
1 parent 7b15e5d commit 18e1f2c3bdd7780f14fc66a336fa4f9ce454b0d1
Showing with 15 additions and 8 deletions.
  1. +15 −8 docs/masternode/tomonative.md
@@ -8,28 +8,35 @@ mainnet without the need of using Docker and `tmn`.

```bash
export GOROOT=$HOME/usr/local/go
export GOPATH=$HOME/go
```

## Prepare tomo client software
#### Build from source code
Create new directory for the project
```bash
cd $GOPATH/src/github.com/ethereum/go-ethereum
mkdir -p $GOPATH/src/github.com/ethereum/
cd $GOPATH/src/github.com/ethereum/
```
- Download source code and build

- Download source code and build
```bash
git init
git remote add git@github.com:tomochain/tomochain.git
git clone git@github.com:tomochain/tomochain.git go-ethereum
cd go-ethereum
```

git pull origin master
- Checkout the latest version (e.g v1.4.1)
```
git pull origin --tags
git checkout v1.4.1
```

- Build the project
```
make all
```
- Binary file should be generated in build folder `$GOPATH/src/github.com/ethereum/go-ethereum/build/bin`

- Binary file should be generated in build folder `$GOPATH/src/github.com/ethereum/go-ethereum/build/bin`
```bash
alias tomo=$GOPATH/src/github.com/ethereum/go-ethereum/build/bin/tomo
```

0 comments on commit 18e1f2c

Please sign in to comment.
You can’t perform that action at this time.