安装以太坊各工具插件

从包管理器安装

通过 Homebrew 在 macOS 上安装

安装 go-ethereum 最简单的方法是使用我们的 Homebrew tap。如果您没有 Homebrew,请先安装它

运行以下命令来添加 tap 并安装geth

1
2
brew tap ethereum/ethereum
brew install ethereum

--devel您可以使用以下参数安装主分支:

1
brew install ethereum --devel

, abigen, bootnode, checkpoint-admin, clef, devp2p, ethkey, evm, faucet, geth, p2psim, puppeth,rlpdumpwnode命令然后在您的系统上可用/usr/local/bin/

查找可用的不同选项和命令geth --help

通过 PPA 在 Ubuntu 上安装

在基于 Ubuntu 的发行版上安装 go-ethereum 的最简单方法是使用内置的启动板 PPA(个人软件包档案)。我们提供了一个单一的 PPA 存储库,其中包含我们针对 Ubuntu 版本trustyxenial. zestyartful.

要启用我们的启动板存储库,请运行:

1
sudo add-apt-repository -y ppa:ethereum/ethereum

然后安装 go-ethereum 的稳定版本:

1
2
sudo apt-get update
sudo apt-get install ethereum

或通过以下方式开发版本:

1
2
sudo apt-get update
sudo apt-get install ethereum-unstable

, abigen, bootnode, clef, evm, geth,puppeth和命令随后在您的系统中rlpdump可用。wnode``/usr/bin/

查找可用的不同选项和命令geth --help

在 Windows 上安装

安装 go-ethereum 最简单的方法是从下载页面下载预编译的二进制 文件。该页面提供了一个安装程序以及一个 zip 文件。安装程序自动geth放入您的PATH。zip 文件包含命令 .exe文件,您可以通过从命令提示符运行它而无需安装即可使用这些文件。

通过 pkg 在 FreeBSD 上安装

1
pkg install go-ethereum

然后该geth命令在您的系统上可用/usr/local/bin/。您可以使用以下命令在节点上创建一个新帐户:

1
geth account new

查找可用的不同选项和命令geth --help

通过端口在 FreeBSD 上安装

转到net-p2p/go-ethereum端口目录:

1
cd /usr/ports/net-p2p/go-ethereum

然后以标准方式构建它(作为根):

1
make install

, abigen, bootnode, clef, evm, geth,puppeth和命令随后在您的系统中rlpdump可用。wnode``/usr/local/bin/

查找可用的不同选项和命令geth --help

通过在 Arch Linux 上安装pacman

geth软件包可从社区 repo获得。

您可以使用以下方式安装它:

1
pacman -S geth

, abigen, bootnode, clef, evm, geth,puppeth和命令随后在您的系统中rlpdump可用。wnode``/usr/bin/

查找可用的不同选项和命令geth --help