diff --git a/doc/troubleshooting/ruby.md b/doc/troubleshooting/ruby.md index 7ba7409c24f86563e25d4df337c1dbdf2c445eb0..f39401dc464fd728de07f9efa84877c973e3f31c 100644 --- a/doc/troubleshooting/ruby.md +++ b/doc/troubleshooting/ruby.md @@ -498,3 +498,17 @@ Building native extensions. This could take a while... The solution is to enable SIP using the [official instructions](https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection). + +## `bundle install` returns `LoadError` + +When you run `bundle install`, you might encounter the following error: + +```shell +/Users/<username>/.asdf/installs/ruby/3.1.4/bin/bundle:25:in `load': cannot load such file -- /Users/<username>/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.20/exe/bundle (LoadError) from /Users/<username>/.asdf/installs/ruby/3.1.4/bin/bundle:25:in `<main>' +``` + +To resolve this issue, run the following command to update the bundler: + +```shell +gem install bundler +```