Rails Error - `require ': there is no such file to load - rubygems (LoadError)

I recently followed some instructions with RVM to install ruby-debug, and I think this might cause some problems. The link in which I found the instructions is here: http://beginrescueend.com/support/troubleshooting/

The commands I used to install are as follows:

$ rvm reinstall 1.9.3 --patch debug --force-autoconf
$ gem install ruby-debug19 -- --with-ruby-include="${MY_RUBY_HOME/rubies/src}"

Now, when I try to start the rails server, I get the following error:

./bundler_stubs/rails:13:in `require': no such file to load -- rubygems (LoadError)
from ./bundler_stubs/rails:13

This SO question made me believe that I had more than one version of the rails installed: there is no such file to load - rubygems (LoadError)

However, when I run which -a ruby, as the selected answer suggests, I get only /usr/bin/ruby. Any thoughts on what to do here?

+2
2

Ruby .

rvm use 1.9.3

which ruby .

Ruby

rvm --default 1.9.3

- Ruby . , .rvmrc. .

echo "rvm use 1.9.3" >> /project/folder/.rvmrc

( , ..) (rvm) Ruby , .

gem install ruby-debug19
+5

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" .bash_profile ( Mac) .bashrc ( Linux). , RVM , Ruby.

0

All Articles