In my server, when I run ruby -v
I get:}
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
but when I run sudo ruby -v
I get
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
I have tried setting the alternatives as suggested here, but I just got an error message. I have also tried the default option with rvm, but didn't work either
Since I'm trying to do this in the server, I don't have root permission (su) so there are some things I can't try.
What can I do to use ruby 1.9.2? I am getting the message
Could not find paperclip-3.0.3 in any of the sources (Bundler::GemNotFound)
Exception class:
PhusionPassenger::UnknownError
and I am sure it is caused by the ruby version.
Maybe I just need to set Passenger's ruby path as suggested here, but I can't seem to find the file vhost where I should set PassengerRuby