dogiant@bogon:/usr/local$brew tap ethereum/ethereum Updating Homebrew... ==>Tapping ethereum/ethereum Cloning into '/usr/local/Homebrew/Library/Taps/ethereum/homebrew-ethereum'... remote: Counting objects: 6, done. remote: Compressing objects: 100% (6/6), done. remote: Total 6 (delta 1), reused 1 (delta 0), pack-reused 0 Unpacking objects: 100% (6/6), done. Checking connectivity... done. Tapped 3 formulae (31 files, 33.9K) dogiant@bogon:/usr/local$brew install ethereum ==>Installing ethereum from ethereum/ethereum ==>Installing dependencies for ethereum/ethereum/ethereum:go ==>Installing ethereum/ethereum/ethereum dependency:go ==>Downloading https://homebrew.bintray.com/bottles/go-1.7.4_1.el_capitan.bottle.tar.gz ######################################################################## 100.0% ==>Pouring go-1.7.4_1.el_capitan.bottle.tar.gz ==>Caveats As of go 1.2, a valid GOPATH is required to use the `go get` command: https://golang.org/doc/code.html#GOPATH
You may wish to add the GOROOT-based install location to your PATH: export PATH=$PATH:/usr/local/opt/go/libexec/bin ==>Summary � /usr/local/Cellar/go/1.7.4_1: 6,438 files, 250.7M ==>Installingethereum/ethereum/ethereum ==>Cloning https://github.com/ethereum/go-ethereum.git Cloning into '/Users/dogiant/Library/Caches/Homebrew/ethereum--git'... remote: Counting objects: 2737, done. remote: Compressing objects: 100% (2066/2066), done. remote: Total 2737 (delta 963), reused 1654 (delta 553), pack-reused 0 Receiving objects: 100% (2737/2737), 14.91 MiB | 112.00 KiB/s, done. Resolving deltas: 100% (963/963), done. Checking connectivity... done. Note: checking out 'ff07d54843ea7ed9997c420d216b4c007f9c80c3'.
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
Checking out files: 100% (2487/2487), done. ==>Checking out tag v1.5.5 ==>go env ==>make all ==>Caveats To have launchd start ethereum/ethereum/ethereum now and restart at login: brew services start ethereum/ethereum/ethereum ==>Summary � /usr/local/Cellar/ethereum/1.5.5: 9 files, 47.7M, built in 5 minutes 30 seconds
安装完毕后
geth -h
列出当前的用户
geth account list
显示空
dogiant@bogon:~/ethereum/workspace$geth --datadir "~/ethdev" --dev I1228 15:16:46.907316 cmd/utils/flags.go:615] WARNING: No etherbase set and no accounts found as default I1228 15:16:46.907493 ethdb/database.go:83] Allotted 128MB cache and 1024 file handles to /Users/dogiant/ethdev/geth/chaindata I1228 15:16:46.911765 ethdb/database.go:176] closed db:/Users/dogiant/ethdev/geth/chaindata I1228 15:16:46.912892 node/node.go:176] instance: Geth/v1.5.5-stable-ff07d548/darwin/go1.7.4 I1228 15:16:46.912925 ethdb/database.go:83] Allotted 128MB cache and 1024 file handles to /Users/dogiant/ethdev/geth/chaindata I1228 15:16:46.935109 eth/backend.go:280] Successfully wrote custom genesis block: e5be92145a301820111f91866566e3e99ee344d155569e4556a39bc71238f3bc I1228 15:16:46.935127 eth/backend.go:299] ethash used in test mode I1228 15:16:46.935536 eth/db_upgrade.go:346] upgrading db log bloom bins I1228 15:16:46.935580 eth/db_upgrade.go:354] upgrade completed in 48.143µs I1228 15:16:46.935601 eth/backend.go:191] Protocol Versions: [63 62], Network Id: 1 I1228 15:16:46.935744 eth/backend.go:219] Chain config: {ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000} I1228 15:16:46.935983 core/blockchain.go:219] Last header: #0 [e5be9214…] TD=131072 I1228 15:16:46.935998 core/blockchain.go:220] Last block: #0 [e5be9214…] TD=131072 I1228 15:16:46.936007 core/blockchain.go:221] Fast block: #0 [e5be9214…] TD=131072 I1228 15:16:46.936626 p2p/server.go:342] Starting Server I1228 15:16:49.127910 p2p/discover/udp.go:227] Listening, enode://05399f51a43805c17f82e5016d5969d14b3092018cae87eec77ed52291d66c50c7d7bf024d953b0afcccd44c717f17aaf251b897d770054205ea268b49a3050b@10.0.37.126:58049 I1228 15:16:49.128111 whisper/whisperv2/whisper.go:176] Whisper started I1228 15:16:49.128115 p2p/server.go:610] Listening on [::]:55739 I1228 15:16:49.129641 node/node.go:341] IPC endpoint opened: /Users/dogiant/ethdev/geth.ipc
dogiant@dubiaoqideMBP:~$geth --dev console 2>> file_to_log_output Welcome to the Geth JavaScript console!