第一、先安裝geth的CLI環境sudo apt-get install geth,這個很重要
第二、下載原始碼
git clone https://github.com/ethereum/go-ethereum
第三、依賴環境
註:(重要)先通過此連結配置GO語言的開發環境:https://github.com/ethereum/go-ethereum/wiki/Installing-Go#ubuntu-1404
Ethereum Go是使用Go語言開發的,需要Go和C的編譯器
sudo apt-get install -y build-essential golang
cd go-ethereummake geth
最後輸入:
build/bin/geth --datadir "~/ethdev" --dev
啟動用戶端
然後另起終端輸入
geth --dev console 2>> file_to_log_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
>
即為成功
然後就可以進行以太坊命令操作
也可已使用build/bin/geth --identity "secbro etherum" --rpc --rpccorsdomain "*" --datadir "/home/zero/eth/chain" --port "30303" --rpcapi "db,eth,net,web3" -- networkid 95518 console --dev建立私人連,創世塊
最後配置Go語言環境可以參考我的部落格