在 OSX 上安装 go 调试器
安装 go 后,我得到以下几行:
在 OS X 上,调试器必须安装 setgrp procmod。 阅读并运行 ./sudo.bash 以安装调试器。
很抱歉提出这个初学者的问题,但这到底意味着什么?我需要做什么才能安装调试器?
我运行了 ./sudo.bash 但什么也没发生。我读这篇文章是不是太字面意思了?
After installing go, I got the following lines:
On OS X the debuggers must be installed setgrp procmod.
Read and run ./sudo.bash to install the debuggers.
Sorry for the beginner question, but what exactly does this mean? What do I have to do to install the debuggers?
I ran ./sudo.bash but nothing happened. Am I reading this too literally?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
理论上,您只需按照您所做的操作,它将二进制文件从构建区域复制到
/usr/local/bin
,然后使它们属于组procmod
和 SetGID 。考虑运行:
这应该向您展示它正在做什么。
我不完全同意该脚本的作用;我希望 Go 调试器不在
/usr/local/bin
中,谢谢,而是在 $GOROOT 下,所以我不使用官方的sudo.bash
而是创建我自己的 sudo.bash.goroot 包含:这对我来说效果很好。
In theory, you simply do as you did, and it copies the binaries from the build area to
/usr/local/bin
and then makes them belong to groupprocmod
and SetGID.Consider running:
That should show you what it is doing as it does it.
I don't entirely agree with what that script does; I want the Go debuggers not in
/usr/local/bin
, thank you, but under $GOROOT, so I don't use the officialsudo.bash
but instead created my ownsudo.bash.goroot
which contains:That works fine for me.