A.前期准备:
http://m.2cto.com/kf/201612/573010.html
(1)安装python2.7,mac在终端中直接使用以下命令:
brew install python(注意python是小写)
(2)安装solc(solidity语言编译器),在终端中执行以下命令:
sudo npm install -g solc
同时需要安装solc-cli:
sudo npm install -g solc-cli
使用以下命令可以一并安装solc和solc-cli,推荐使用此命令安装:
sudo npm install -g solc solc-cli –save-dev
B.环境准备:
go 1.6(安装指定版本) 和 以太坊是:1.4(下载指定版本)
1.go安装:
brew uninstall go
br 大专栏 2.mac下 安装go-ethereumew search go@1.7
brew install go@1.6
echo ‘export PATH=”/usr/local/opt/go@1.6/bin:$PATH”‘ >> ~/.bash_profile
source ~/.bash_profile
2.以太坊的安装:
git clone -b release/1.5 –depth 1 https://github.com/ethereum/go-ethereum.git
make geth
/build/bin/geth console
验证:
eth.getCompilers()
C.后期操作:
http://www.cnblogs.com/fengzhiwu/p/5629468.html
目前两个区块的密码分别是:
123
456
本机geth:
/Users/yinzf/product_geth/go-ethereum/build/bin/geth –datadir /Users/yinzf/product_geth –fast –cache 1024
/Users/yinzf/product_geth/go-ethereum/build/bin/geth attach /Users/yinzf/product_geth/geth.ipc
原文:https://www.cnblogs.com/lijianming180/p/12099737.html