我通过homebrew安装了vapor,然后立即想通过执行vapor new Hello进入一个项目,但随后在终端中得到了以下消息:

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卡塔琳娜,如果有关系的话。


当前回答

如果你没有家酿咖啡或者不知道是什么

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update && brew upgrade
brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

或者如果你已经安装了Homebrew

brew update && brew upgrade
brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

这在Mac 10.15上适用

其他回答

我尝试了上面提出的几种解决方案,但都没有成功。

所以,我已经用rbenv安装了ruby 2.7.2的最新版本,并升级了我的应用程序。

然后我有一个PG::ConnectionBad错误。

我跑

brew postgresql-upgrade-database.

现在运行正常了。

这里有更多关于我尝试的细节。

在macOS 10.9.5和macports 2.8.0的机器上:

sudo -s ln -s /opt/local/lib/openssl-1.0/libcrypto.1.0.0.dylib /opt/local/lib/libcrypto.1.0.0.dylib  

帮助

我可以通过brew升级Python 3来解决这个问题

Brew升级python@3

这招对我很管用: Brew卸载openssl; Brew卸载openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb

本文建议: https://github.com/kelaberetiv/TagUI/issues/635#issuecomment-560139279

我遇到这个错误mysql(版本:5.6.46_2),Mac (Mojave 10.14.5):

    brew update && brew upgrade
    brew now setup_mysql
    echo ‘export PATH=“/usr/local/opt/mysql56/bin:$PATH”’ >> 
    ~/.bash_profile
    /usr/local/opt/mysql56/bin/mysql.server start