我刚刚开始在Mac (OSSiera10.12.6)上编程,并试图设置我的环境。我正在跟踪Ethereum.org安装使用说明。
我完成了这些步骤来安装geth,我相信:
brew tap ethereum/ethereum
brew install ethereum我现在在geth帐户和控制台步骤。
但是,我得到了以下错误:
geth account new
-bash: geth: command not found和
geth console
-bash: geth: command not found当我cd到目录./Library/Caches/Homebrew/ethereum--git/cmd/geth时
然后在那里运行,我得到同样的错误。
另外,这些是我在目录中看到的文件,而不是专门用于geth的文件。
ls /Users/me/Library/Caches/Homebrew/ethereum--git/cmd/geth
accountcmd.go genesis_test.go
accountcmd_test.go main.go
bugcmd.go misccmd.go
chaincmd.go monitorcmd.go
config.go run_test.go
consolecmd.go testdata
consolecmd_test.go usage.go
dao_test.go我还需要执行安装步骤吗?
文件过时了吗?您是否推荐一些好的、当前的文档和教程?
我确实看到了以下命令: consolecmd.go
我不熟悉go语言,但我看到了一些带有.go扩展名的文件。
我想我还没有启用,因为当我尝试cd到目录时,没有找到:
cd /usr/local/go
-bash: cd: /usr/local/go: No such file or directory任何帮助都将不胜感激。
发布于 2017-09-16 16:34:51
我的问题是,我的$PATH环境变量中没有包含/usr/local/bin。geth可执行文件位于此目录中。
因此,我编辑了我的配置文件:(vi .bash_profile),并将它添加到目录的开头。
发布于 2017-12-11 11:53:50
我遇到了一个类似的问题,解决方案是将geth.exe路径添加到.bash_profile文件中。
另一种解决方法是在笔记本中找到geth.exe文件并将其复制到usr/local/bin (确保usr/local/bin已经添加到.bash_profile中)
发布于 2018-08-29 06:45:43
您可以通过将它添加到.bash_profile文件中来解决这个问题。
这些是步骤
https://ethereum.stackexchange.com/questions/26558
复制相似问题