Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安全性:SecKeychainSearchCopyNext错误-无法在MacOS上安装Delve_Macos_Go_Homebrew_Zsh_Delve - Fatal编程技术网

安全性:SecKeychainSearchCopyNext错误-无法在MacOS上安装Delve

安全性:SecKeychainSearchCopyNext错误-无法在MacOS上安装Delve,macos,go,homebrew,zsh,delve,Macos,Go,Homebrew,Zsh,Delve,我使用以下方式安装了Delve: brew install delve 日志显示了一些问题: brew install go-delve/delve/delve Updating Homebrew... ==> Installing delve from go-delve/delve ==> Downloading https://github.com/derekparker/delve/archive/v1.0.0.tar.gz Already downloaded: /User

我使用以下方式安装了Delve:

brew install delve
日志显示了一些问题:

brew install go-delve/delve/delve
Updating Homebrew...
==> Installing delve from go-delve/delve
==> Downloading https://github.com/derekparker/delve/archive/v1.0.0.tar.gz
Already downloaded: /Users/user/Library/Caches/Homebrew/delve-1.0.0.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
它没有安装,因为在运行命令
dlv
时,我发现错误:

zsh:未找到命令:dlv


我通过以下步骤解决了此问题:

cd $HOME/Library/Caches/Homebrew
tar xf delve-*.gz
Go into the new directory (mine is delve-1.0.0)
sh scripts/gencert.sh and enter your password
brew install go-delve/delve/delve