2
0

More than 1 year has passed since last update.

Rubyのバージョンを変更した際のLoadError解決法

Posted at

実現したいこと

Rubyのバージョンを変更した際に発生する、LoadErrorを解決したい✅

エラー文(抜粋)
`require': incompatible library version

解決法

結論から言うと、
vender/bundle/ruby/バージョン番号以下のフォルダを全削除して、bundle installすれば解決します!!!


エラー発生→解決まで

その1 rubyのバージョンを変更

terminal
rbenv global バージョン番号
又は、
rbenv local バージョン番号

その2 GemfileのRubyバージョンの書き換え&bundle install

Gemfile
ruby 'バージョン番号'

エラー発生rails sするとLoadErrorが発生してしまう🤯


その3 ググってこちらの記事を発見!
vender/bundle/ruby/バージョン番号以下のフォルダを全削除して、bundle install


解決rails sができるように🎉


最後に

Rubyバージョン変更時のLoadError解決法の記事がなかったので執筆しました!
この記事が多くの悩める方に届けば幸いです🌱

2
0
1

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
2
0