NYC's Blog - 解决Mac 10.12.1及后续版本无法使用dlv调试go问题 的评论 Notice:因为美国大选,博客好久没更新了。(有什么关系吗?...)之前有一篇博客《Mac安装GDB》里面介绍过如何在Mac上面安装GDB,并调试Go程序。但是,作为一个新兴语言,GDB对于G... 2017-09-19T22:34:59+08:00 Typecho http://niyanchun.com/feed/atom/solve-dlv-bug-on-mac.html <![CDATA[chaim]]> http://niyanchun.com/solve-dlv-bug-on-mac.html/comment-page-1#comment-342 2017-09-19T22:34:59+08:00 2017-09-19T22:34:59+08:00 chaim 我也遇到这个问题 请问解决了吗 如何解决?

]]>
<![CDATA[william.yang]]> http://niyanchun.com/solve-dlv-bug-on-mac.html/comment-page-1#comment-319 2017-08-20T19:25:04+08:00 2017-08-20T19:25:04+08:00 william.yang CERT=dlv-cert.key make install [6bff4d1]
go install -ldflags="-s -X main.Build=6bff4d19706b46b7bd350212048e4a140caad271" github.com/derekparker/delve/cmd/dlv
codesign -s "dlv-cert.key" /bin/dlv
/bin/dlv: No such file or directory
make: * [install] Error 1

]]>
<![CDATA[NYC]]> http://niyanchun.com/solve-dlv-bug-on-mac.html/comment-page-1#comment-202 2017-03-01T16:21:42+08:00 2017-03-01T16:21:42+08:00 NYC https://niyanchun.com/ sudo chown root:wheel /usr/local/bin/brew 试试

]]>
<![CDATA[Golang爱好者]]> http://niyanchun.com/solve-dlv-bug-on-mac.html/comment-page-1#comment-201 2017-03-01T16:06:20+08:00 2017-03-01T16:06:20+08:00 Golang爱好者 使用正常的用户安装报错:
Error: Could not create /usr/local/Cellar
Check you have permission to write to /usr/local
使用 root 用户安装报错:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
博主现在的解决方案是什么?

]]>
<![CDATA[Golang爱好者]]> http://niyanchun.com/solve-dlv-bug-on-mac.html/comment-page-1#comment-200 2017-03-01T16:03:03+08:00 2017-03-01T16:03:03+08:00 Golang爱好者 最新的解决方案不可以用呀,使用 brew 现在是不允许作为 root 权限运行,不使用 root 权限又会报权限禁止的错误

]]>
<![CDATA[NYC]]> http://niyanchun.com/solve-dlv-bug-on-mac.html/comment-page-1#comment-174 2017-01-22T09:18:16+08:00 2017-01-22T09:18:16+08:00 NYC https://niyanchun.com/ 看错误应该是你的证书生成的有问题,你参看下官方的wiki重新生成一下证书试试:https://github.com/derekparker/delve/wiki/Installation-on-OSX

]]>
<![CDATA[tianlei]]> http://niyanchun.com/solve-dlv-bug-on-mac.html/comment-page-1#comment-173 2017-01-22T00:57:31+08:00 2017-01-22T00:57:31+08:00 tianlei 没有解决问题 tl:delve tianlei$ CERT=dlv-cert make install
go install -ldflags="-s -X main.Build=39f4d937a46782460eb978c98f2ece07cb2df9c2" github.com/derekparker/delve/cmd/dlv
codesign -s "dlv-cert" /Users/tianlei/myGolang/bin/dlv
dlv-cert: ambiguous (matches "dlv-cert" in /Users/tianlei/Library/Keychains/login.keychain-db and "dlv-cert" in /Library/Keychains/System.keychain)
make: * [install] Error 1

]]>
<![CDATA[NYC]]> http://niyanchun.com/solve-dlv-bug-on-mac.html/comment-page-1#comment-172 2017-01-21T10:59:09+08:00 2017-01-21T10:59:09+08:00 NYC https://niyanchun.com/ 你是按照我最新更新的方法吗?dlv version和type dlv看下输出。原来的方法编译的dlv在GOBIN下,brew安装的/usr/local/bin下面。所以PATH的顺序要注意下,以及软连接要做正确。要链接到/usr/local/bin下的dlv。

]]>
<![CDATA[宁静致远]]> http://niyanchun.com/solve-dlv-bug-on-mac.html/comment-page-1#comment-171 2017-01-21T02:20:42+08:00 2017-01-21T02:20:42+08:00 宁静致远 http://t.qq.com/baby521ql 能加下qq吗:4402935 我根据你的方法还是没有成功呢

]]>