Installation 2.mac next go-ethereum

Contents

The Code

A. preparation:
http://m.2cto.com/kf/201612/573010.html

(1) mounted python2.7, mac directly using the following command in the terminal:
BREW the install python (python note lowercase)
(2) is mounted solc (solidity language compiler), execute the following commands in the terminal:
the sudo NPM the install -g solc
also need to install cli-solc:
sudo npm install -g solc-cli
using the following command that can be installed solc and solc-cli, recommended to use this command to install:
sudo npm install -g solc solc-cli -save-dev

B. Environmental ready:
Go 1.6 (to install the specified version) and Ethernet Square are: 1.4 (download the specified version)
1.Go installation:

brew uninstall go

br large column  under 2.mac-Ethereum install Go EW Search [email protected]

brew install [email protected]

echo ‘export PATH=”/usr/local/opt/[email protected]/bin:$PATH”‘ >> ~/.bash_profile

source ~/.bash_profile

Installation 2. Ether Square:
Git clone -b Release / -depth for 1.5. 1 https://github.com/ethereum/go-ethereum.git

make geth

/build/bin/geth console
验证:
eth.getCompilers()

C. post-operation:

http://www.cnblogs.com/fengzhiwu/p/5629468.html

Currently two blocks of code are:
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

Guess you like

Origin www.cnblogs.com/lijianming180/p/12099737.html