LoginSignup
6
0

More than 3 years have passed since last update.

bundleができない時の対処法

Posted at

環境

  • rails 5.2.3
  • ruby 2.6.3
  • rbenv 1.1.2

エラー内容

railsで、bundleをしようとしたところ

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

このようなエラーがでました。

対応

探したところ、この記事に似たエラーが表示されていたので、記載通りおこなったところ改善なし😇
openssl系のエラーみたいなので、再インストールをしても反応なし。
rbenvでバージョン管理しているため、一度ruby2.6.3を削除し、インストールすると無事改善しました。

6
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
0