Installation 在OSX上安装go调试器
安装go后,我得到了以下几行: 在OSX上,必须安装调试程序setgrp procmod。 读取并运行./sudo.bash以安装调试器 对于初学者的问题,很抱歉,但这到底意味着什么?安装调试器需要做什么Installation 在OSX上安装go调试器,installation,debugging,go,Installation,Debugging,Go,安装go后,我得到了以下几行: 在OSX上,必须安装调试程序setgrp procmod。 读取并运行./sudo.bash以安装调试器 对于初学者的问题,很抱歉,但这到底意味着什么?安装调试器需要做什么 我跑了./sudo.bash,但什么也没发生。我是不是在逐字逐句地读这个?理论上,你只需照着做,它将二进制文件从构建区域复制到/usr/local/bin,然后使它们属于组procmod和SetGID 考虑运行: sh -x sudo.bash 这应该让你知道它在做什么 我不完全同意那个剧本
我跑了./sudo.bash,但什么也没发生。我是不是在逐字逐句地读这个?理论上,你只需照着做,它将二进制文件从构建区域复制到
/usr/local/bin
,然后使它们属于组procmod
和SetGID
考虑运行:
sh -x sudo.bash
这应该让你知道它在做什么
我不完全同意那个剧本的作用;谢谢,我希望Go调试器不在/usr/local/bin
中,而是在$GOROOT下,因此我不使用官方的sudo.bash
,而是创建了我自己的sudo.bash.GOROOT
,其中包含:
#!/usr/bin/env bash
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
set -e
. ./env.bash
case "`uname`" in
Darwin)
;;
*)
exit 0
esac
for i in prof cov
do
sudo cp "$GOROOT"/src/cmd/$i/6$i $GOROOT/bin/6$i
sudo chgrp procmod $GOROOT/bin/6$i
sudo chmod g+s $GOROOT/bin/6$i
done
这对我来说很好。理论上,你只需做你所做的,它将二进制文件从构建区域复制到
/usr/local/bin
,然后使它们属于组procmod
和SetGID
考虑运行:
sh -x sudo.bash
这应该让你知道它在做什么
我不完全同意那个剧本的作用;谢谢,我希望Go调试器不在/usr/local/bin
中,而是在$GOROOT下,因此我不使用官方的sudo.bash
,而是创建了我自己的sudo.bash.GOROOT
,其中包含:
#!/usr/bin/env bash
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
set -e
. ./env.bash
case "`uname`" in
Darwin)
;;
*)
exit 0
esac
for i in prof cov
do
sudo cp "$GOROOT"/src/cmd/$i/6$i $GOROOT/bin/6$i
sudo chgrp procmod $GOROOT/bin/6$i
sudo chmod g+s $GOROOT/bin/6$i
done
这对我来说很好