Geth及mac上安装Geth

Geth介绍

Geth别名go-ethereum,是以太坊协议的三种实现之一,由Go语言开发,完全开源的项目。

Geth作用

Geth是以太坊协议的具体落地实现,通过Geth,你可以实现以太坊的各种功能,如账户的新建编辑删除,开启挖矿,ether币的转移,智能合约的部署和执行等等

本文安装环境:

mac os 10.13.4 

Geth安装

brew tap ethereum/ethereum
brew install ethereum

如果命令返回

-bash: brew: command not found

则需先安装Homebrew,运行命令

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
如果安装过程中提示:
xcode-select: error: invalid developer directory '/Library/Developer/CommandLineTools'
Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools

表示你安装的是较新版本的xcode,和旧版目录不一致或者需要更新xcode-select:

手动设置(确保是目录/Applications下,而不是/Users/{user}/Applications)

sudo xcode-select --switch /Applications/Xcode.app

执行以下命令更新xcode-select

xcode-select --install

mac系统会提示安装xcode-select

至此Homebrew安装成功,可以顺利安装Geth了。

最后检查安装是否成功

geth VERSION


引用:

https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Mac
https://brew.sh/

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值