14
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

delveをインストールするのにハマったので備忘録

Posted at

出力されたエラー

❯ brew install go-delve/delve/delve
==> Installing delve from go-delve/delve
==> Downloading https://github.com/derekparker/delve/archive/v1.0.0-rc.1.tar.gz
Already downloaded: /Users/ikezawa-ryota/Library/Caches/Homebrew/delve-1.0.0-rc.1.tar.gz
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
==> Generating dlv-cert
==> openssl req -new -newkey rsa:2048 -x509 -days 3650 -nodes -config dlv-cert.cfg -extensions codesign_reqext -batch -out dlv-cert.cer -keyout dlv-cert.key
==> [SUDO] Installing dlv-cert as root
==> sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain dlv-cert.cer
Last 15 lines from /Users/ikezawa-ryota/Library/Logs/Homebrew/delve/02.sudo:
2017-10-02 09:38:44 +0900

sudo
security
add-trusted-cert
-d
-r
trustRoot
-k
/Library/Keychains/System.keychain
dlv-cert.cer

dlv
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/go-delve/homebrew-delve/issues

These open issues may also help:
Upgrade to delve fails https://github.com/go-delve/homebrew-delve/issues/20
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain. https://github.com/go-delve/homebrew-delve/issues/19
Mac install error, OS version 10.12.6, go version go1.8.3 https://github.com/go-delve/homebrew-delve/issues/17
The specified item could not be found in the keychain https://github.com/go-delve/homebrew-delve/issues/16
Issue updating to 0.12.2 https://github.com/go-delve/homebrew-delve/issues/12
dlv-cert: no identity found https://github.com/go-delve/homebrew-delve/issues/1
Executable does not get installed on MacOS https://github.com/go-delve/homebrew-delve/issues/18
deps: do not install go if it's available on the system https://github.com/go-delve/homebrew-delve/issues/9
Mac install Error https://github.com/go-delve/homebrew-delve/issues/3
Mac install Error https://github.com/go-delve/homebrew-delve/issues/7

keychainが問題っぽいのは察したので、調べてみる。

手順

下記手順でインストールできました。

cd $HOME/Library/Caches/Homebrew
❯ ls delve*
delve-1.0.0-rc.1.tar.gz
❯ tar xf delve-1.0.0-rc.1.tar.gz
❯ sh scripts/gencert.sh
❯ brew install go-delve/delve/delve

確認

❯ dlv version
Delve Debugger
Version: 1.0.0-rc.1
Build:

Refereneces

https://github.com/go-delve/homebrew-delve/issues/20
https://github.com/go-delve/homebrew-delve/issues/19

14
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?