Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing delve for GO in Mac OSX

Tags:

go

delve

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.

1) I have created certification and signed application

2) I kill taskgated just before make command but it starts again after make.

3) If I rename these files, this command makes failure. /System/Library/LaunchDaemons/com.apple.taskgated-helper.plist /System/Library/LaunchDaemons/com.apple.taskgated.plist

codesign -s "dlv-cert" /Users/murotanimari/work/bin/dlv
error: One or more parameters passed to a function were not valid.
like image 498
Mari Murotani Avatar asked Mar 19 '16 16:03

Mari Murotani


1 Answers

  1. brew install steeve/delve/delve -> this installs delve and creates the certificate
  2. Go to the delve folder, GOPATH/src/derek…/delve
  3. Install cert for delve with command CERT=dlv-cert make install
like image 173
Alex Goja Avatar answered Oct 04 '22 05:10

Alex Goja