在我的 macbook 中安装 Go 后,如何找到它的位置?
After I installed my Go in my macbook, how can I find the place of it?
我使用后:
brew install go
在我的 mac 中安装了我的 Go,它给出了一个摘要:
==> Summary
/usr/local/Cellar/go/1.8.1: 7,030 files, 281.8MB
但是在我的查找器中找不到 local
目录。
如何在我的 mac 中找到我安装的 Go 库?
请看这个https://discussions.apple.com/thread/5418731?tstart=0
从 Finder 的前往菜单中选择前往文件夹并提供 /usr/local/ 作为路径。
所有类似 this one 的帖子都指出:
This directory is hidden as it's a system directory and users have no need to change anything in it.
To expose it in finder enter commandshiftg in finder and in the resulting popup enter
/usr/local
需要注意的一件事是,根据所附图片,您正在查看与 /usr 不同的 /User 文件夹。
您可以使用 brew --prefix <formula>
获得任何 Homebrew 公式的 prefix
。即使未安装公式,它也会显示它所在的位置。
$ brew --prefix go
/usr/local/opt/go
您可以使用 open
从终端打开 Finder 中的任何目录,因此您只需:
open $(brew --prefix go)
我使用后:
brew install go
在我的 mac 中安装了我的 Go,它给出了一个摘要:
==> Summary
/usr/local/Cellar/go/1.8.1: 7,030 files, 281.8MB
但是在我的查找器中找不到 local
目录。
如何在我的 mac 中找到我安装的 Go 库?
请看这个https://discussions.apple.com/thread/5418731?tstart=0
从 Finder 的前往菜单中选择前往文件夹并提供 /usr/local/ 作为路径。
所有类似 this one 的帖子都指出:
This directory is hidden as it's a system directory and users have no need to change anything in it.
To expose it in finder enter commandshiftg in finder and in the resulting popup enter
/usr/local
需要注意的一件事是,根据所附图片,您正在查看与 /usr 不同的 /User 文件夹。
您可以使用 brew --prefix <formula>
获得任何 Homebrew 公式的 prefix
。即使未安装公式,它也会显示它所在的位置。
$ brew --prefix go
/usr/local/opt/go
您可以使用 open
从终端打开 Finder 中的任何目录,因此您只需:
open $(brew --prefix go)