未加载库libssl.1.0.0.dylib

问题描述 投票:1回答:1

我正在尝试解决我在Dragonfly中遇到的错误,即我的图像没有解码委托,我发现的解决方案之一是删除Imagemagick,然后从源代码重新安装。从那时起,每当我尝试启动Rails服务器,捆绑安装或添加任何红宝石宝石时,都会收到以下错误消息。

/Users/username/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/Users/username/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin18.0/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError)
  Referenced from: /Users/username/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin18.0/openssl.bundle
  Reason: image not found - /Users/username/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin18.0/openssl.bundle

我尝试删除并重新安装openssl,brew更新/升级。它没有发芽。

ruby-on-rails ruby ruby-on-rails-4 openssl
1个回答
0
投票
gem uninstall mysql2 brew install openssl gem install mysql2 -- --with-opt-dir="$(brew --prefix openssl)
这对我有用。
© www.soinside.com 2019 - 2024. All rights reserved.