dyld:未加载库:/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib

yiy*_*iye 13 electron electron-builder

使用电子生成器构建Windows应用程序,注册时,我收到此错误:

dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
  Referenced from: /Users/puss/Library/Caches/electron-builder/winCodeSign/winCodeSign-1.7.0/darwin/osslsigncode
  Reason: image not found
Run Code Online (Sandbox Code Playgroud)

Uni*_*eak 48

如果您使用的是 MacOS 10.15 (Catalina),请尝试此操作(重新安装 openssl):

brew update && brew upgrade
brew uninstall openssl
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
Run Code Online (Sandbox Code Playgroud)

  • 如果已经安装了“openssl”。请使用“brew uninstall --ignore-dependencies openssl”卸载它。然后执行 `brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb` (6认同)
  • 当我执行“brew update &&brew Upgrade”时,问题解决了。 (3认同)

yiy*_*iye 30

我尝试卸载openssl并重新安装openssl,它工作正常.

brew remove openssl
brew install openssl
Run Code Online (Sandbox Code Playgroud)

  • 在Mac OSx Migrate之后我需要这个 (14认同)
  • 迁移我的MacBook后适合我. (7认同)
  • 如果我尝试删除 openssl,我会收到“拒绝卸载 /usr/local/Cellar/openssl@1.1/1.1.1g,因为 apr-util、elixir、erlang、freetds、httpd、libevent、libpq、libxml2、macvim 需要它” 、 mysql、nghttp2、php71-mcrypt、postgresql、python、python@2、python@3.8、ruby、ruby-build、thefuck 和 wget,目前已安装。`。如果我卸载,这些库可能会停止正常工作吗? (2认同)

Bru*_*ego 30

只需切换到1.0.2t版本,使用以下命令:

brew switch openssl 1.0.2t
Run Code Online (Sandbox Code Playgroud)

  • 在某些情况下,版本是“1.0.2s”。 (9认同)
  • “brew switch”一年前已被弃用,并且似乎不再起作用。@Don'tPanic:`ls -al /usr/local/Cellar/openssl*` (2认同)

小智 13

对我来说,重新安装openssh(不是openssl)是唯一的解决方案。

brew remove openssh
brew install openssh
Run Code Online (Sandbox Code Playgroud)