英文:
Installing delve for GO in Mac OSX
问题
我一直在尝试在我的环境中安装Delve。然而,Delve无法启动,我无法解决这个问题。
操作系统:OSX Yosemite 10.10.4
Darwin内核版本:14.4.0
我按照上述URL中提到的步骤安装了Delve。安装成功,并且以root用户适当地启动了Delve。但是,除了root用户之外,Delve返回错误。
1)我创建了证书并签署了应用程序。
2)在执行make命令之前,我杀掉了taskgated进程,但是它在make之后又重新启动了。
3)如果我重命名这些文件,该命令将失败。
/System/Library/LaunchDaemons/com.apple.taskgated-helper.plist
/System/Library/LaunchDaemons/com.apple.taskgated.plist
codesign -s "dlv-cert" /Users/murotanimari/work/bin/dlv
错误:向函数传递的一个或多个参数无效。
英文:
I have been trying to install delve in my environment.
However , delve fails to start and I can't solve this problem.
OS: OSX Yosemite 10.10.4
Darwin Kernel Version 14.4.0
$GOPATH/bin/dlv debug main.go
could not launch process: could not fork/exec
https://github.com/derekparker/delve/wiki/Building
I installed delve following steps mentioned above URL.
Install was succeeded and delve starts appropriately with root user.
Delve returns error except root user.
-
I have created certification and signed application
-
I kill taskgated just before make command but it starts again after make.
-
If I rename these files, this command makes failure.
/System/Library/LaunchDaemons/com.apple.taskgated-helper.plist
/System/Library/LaunchDaemons/com.apple.taskgated.plistcodesign -s "dlv-cert" /Users/murotanimari/work/bin/dlv
error: One or more parameters passed to a function were not valid.
答案1
得分: 3
以下是要翻译的内容:
- brew install steeve/delve/delve -> 这将安装delve并创建证书
- 进入delve文件夹,GOPATH/src/derek…/delve
- 使用命令CERT=dlv-cert make install为delve安装证书
英文:
- brew install steeve/delve/delve -> this installs delve and creates the certificate
- Go to the delve folder, GOPATH/src/derek…/delve
- Install cert for delve with command CERT=dlv-cert make install
答案2
得分: 1
使用证书构建和签名devl
是一项简单的任务,查看这篇文章,它展示了如何创建证书、签名以及从源代码构建的步骤。
-
安装Xcode构建工具
xcode-select --install
-
根据上述文章中的说明,创建证书并进行签名。
-
克隆仓库
git clone https://github.com/go-delve/delve.git && cd delve
-
使用证书进行构建:
CERT=dlv-cert make install
-
启用开发者模式:
sudo /usr/sbin/DevToolsSecurity -enable
-
如需故障排除,请查看此链接
要在OSX
、Linux
、FreeBSD
或Windows
上安装delv
,请参考它们的GitHub Wiki页面,该页面将指导您如何安装。
https://github.com/go-delve/delve/tree/master/Documentation/installation
有关如何使用它、其API和命令行界面的更多信息,请访问官方文档Wiki。
英文:
Building devl
with a certificate and signing it is an easy task, check this article that shows how to create cert, sign it and build from source
-
Install xcode build tools
xcode-select --install
-
Create Certificate and sign it from
Key Chain
details in the article above. -
Clone repo
git clone https://github.com/go-delve/delve.git && cd delve
-
Build with cert:
CERT=dlv-cert make install
-
Enable Developer mode:
sudo /usr/sbin/DevToolsSecurity -enable
-
For troubleshooting, check this link
For Installing delv
in OSX
, Linux
FreeBSD
, or Windows
, here's their github's wiki page that would help you how to install it.
https://github.com/go-delve/delve/tree/master/Documentation/installation
For more information on how to use it, its APIs and command line interface, visit official documentation wiki
答案3
得分: 1
这个命令是安装Delve的,它对我来说有效。但是看起来你需要从一开始就使用Homebrew。
英文:
brew install delve
this one worked for me. but it seems you need to use homebrew from right beginning.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论