Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.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
试图解决/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 - Fatal编程技术网

试图解决/usr/local/opt/openssl/lib/libssl.1.0.0.dylib(LoadError)导致错误的解释器:/usr/local/opt/python/bin/python2.7

试图解决/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

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

  • 所以我试过了

  • brew交换机openssl 1.0.2t

    这里有解决方案 但是找不到openssl 1.0.2t,我的版本是openssl@1.11.1.1h

  • 然后我试着
  • brew卸载--忽略依赖关系openssl brew tap新用户/旧openssl brew extract--版本=1.0.2t openssl$用户/旧openssl brew安装openssl@1.0.2t ln-s/usr/本地/地下室/openssl@1.0.2t/1.0.2t/usr/local/opt/openssl

    建议在这里:。 但是当我跑的时候

    brew交换机openssl 1.0.2t

    我得到了这个错误:

    openssl does not have a version “1.0.2t” in the Cellar.
    openssl’s installed versions
    
  • 所以我选择了这个解决方案

    brew取消链接openssl@1.1 brew链接openssl@1.0.2t

  • 然后得到:

    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”  
    
  • 我跑了第一选择:

    echo“export PATH=“/usr/local/opt”/openssl@1.0.2t/bin:$PATH“'>>~/.zshrc

  • 重新启动我的服务器,现在我有了

    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.