dyld:库未加载:/usr/local/opt/openssl/lib/libssl.1.0.0.dylib [英] dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
问题描述
我通过自制软件安装了蒸气,然后立即想通过执行vapor new Hello
跳入一个项目,但是随后在终端中返回了以下消息:
I installed vapor via homebrew and then immediately wanted to jump into a project by executing vapor new Hello
but then got the following message back in the terminal:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/vapor
Reason: image not found
zsh: abort vapor new Hello
我尝试了一些方法来解决此问题,例如通过brew卸载并重新安装openssl,但这没有用.还尝试了我在互联网上找到的东西,但是没有任何效果.我认为这只与蒸气有关,仅适用于1.0.0版本,而不适用于1.1.1,这就是我所拥有的.我想我需要降级到1.0.0,但是我该怎么做呢?如果那很重要,我就在MacOS Catalina上.预先感谢.
I tried some approaches to fix this like uninstalling and reinstalling openssl via brew but that didn't work . Also tried something I found in the internet but nothing worked. I assume it has something to do with vapor only working with version 1.0.0 but not 1.1.1 and that's what I have. I guess I need to downgrade to 1.0.0 but how'd I do that? I'm on MacOS Catalina if that matters. Thanks in advance.
推荐答案
切换到较旧的openssl软件包
Switch to an older openssl package
brew switch openssl 1.0.2s
或者,根据您的确切系统配置,您可能需要切换到其他版本.在ls -al /usr/local/Cellar/openssl
的输出中检查要切换到的版本号.
Or, depending on your exact system configuration, you may need to switch to a different version. Check the output of ls -al /usr/local/Cellar/openssl
for the version number to switch to.
brew switch openssl 1.0.2q
# or
brew switch openssl 1.0.2r
# or
brew switch openssl 1.0.2s
# or
brew switch openssl 1.0.2t
# etc...
这篇关于dyld:库未加载:/usr/local/opt/openssl/lib/libssl.1.0.0.dylib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!