试图解决/usr/local/opt/openssl/lib/libssl.1.0.0.dylib(LoadError)导致错误的解释器:/usr/local/opt/python/bin/python2.7
brew升级后,我无法再运行任何Ruby on Rails应用程序。我收到了以下错误消息: :dlopen(/Users/ll/.rbenv/versions/2.6.2/lib/ruby/2.6.0/x86_64-darwin18/openssl.bundle,9):未加载库:/usr/local/opt/openssl/lib/libssl.1.0.0.dylib(加载错误) 引用自:/Users/ll/.rbenv/versions/2.6.2/lib/ruby/2.6.0/x86\u 64-darwin18/openssl.bundle 原因:找不到映像-/Users/ll/.rbenv/versions/2.6.2/lib/ruby/2.6.0/x86_64-darwin18/openssl.bundle试图解决/usr/local/opt/openssl/lib/libssl.1.0.0.dylib(LoadError)导致错误的解释器:/usr/local/opt/python/bin/python2.7,python,ruby,ruby-on-rails-3,openssl,Python,Ruby,Ruby On Rails 3,Openssl,brew升级后,我无法再运行任何Ruby on Rails应用程序。我收到了以下错误消息: :dlopen(/Users/ll/.rbenv/versions/2.6.2/lib/ruby/2.6.0/x86_64-darwin18/openssl.bundle,9):未加载库:/usr/local/opt/openssl/lib/libssl.1.0.0.dylib(加载错误) 引用自:/Users/ll/.rbenv/versions/2.6.2/lib/ruby/2.6.0/x86\u 6
openssl does not have a version “1.0.2t” in the Cellar.
openssl’s installed versions
Warning: Refusing to link macOS provided/shadowed software: openssl@1.0.2t
If you need to have openssl@1.0.2t first in your PATH run:
echo ‘export PATH=“/usr/local/opt/openssl@1.0.2t/bin:$PATH”’ >> ~/.zshrc
For compilers to find openssl@1.0.2t you may need to set:
export LDFLAGS=“-L/usr/local/opt/openssl@1.0.2t/lib”
export CPPFLAGS=“-I/usr/local/opt/openssl@1.0.2t/include”
For pkg-config to find openssl@1.0.2t you may need to set:
export PKG_CONFIG_PATH=“/usr/local/opt/openssl@1.0.2t/lib/pkgconfig”
omz_urlencode:2: /usr/local/bin/pygmentize: bad interpreter: /usr/local/opt/python/bin/python2.7: no such file or directory (edited)
不管我做什么
对于那些有同样问题的人,下面是我最终如何解决的 关于Python2错误消息,我将Python3设置为默认Python,并使用:
ln -s -f /usr/local/bin/python3.9 /usr/local/bin/python
正如这里所建议的:
,错误消息已消失
关于openssl问题:
我用rbenv安装了最新的ruby版本2.7.2,并升级了我的应用程序。
然后我有一个PG::ConnectionBad错误
我跑
现在我工作很好
这个简单的解决方案让我走上了正轨
感谢anothermh的支持。我猜ruby是基于已删除的OpenSSL版本构建的。在新安装的OpenSSL上重新安装ruby可能是最容易的。谢谢你的回答,你能解释一下你会怎么做吗?阅读rbenv的文档
brew postgresql-upgrade-database.