I am using Ubuntu 12.04 and installed ruby using rvm. I have recently upgraded ruby from 1.9.3 to 2.0.0. When I displays ruby version it shows 2.0.0.
$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
When I try to start the solr server, it says a bundle is missing.
$ RAILS_ENV=development rake sunspot:solr:start
Could not find unicode_utils-1.4.0 in any of the sources
Run `bundle install` to install missing gems.
Then when I tried to bundle install
, I am getting the following error.
$ bundle install
ERROR: RVM Ruby not used, run `rvm use 1.9.1` first.
Listing the know rubies, I am getting the following MRI rubies.
$ rvm list known
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-p374]
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p320]
[ruby-]1.9.3[-p448]
[ruby-]2.0.0-p195
[ruby-]2.0.0[-p247]
[ruby-]2.0.0-head
ruby-head
As I said before, I recently updated ruby to 2.0.0 and removed all other ones. After that everytime I restart the computer, I need to do bundle install
or do other pre requisites to start the server. I am sure the bundles are installed, but some rvm ruby version is the reason. Any help would be appreciated.
Edit 1 : I tried rvm use 2.0.0-p247
, following is the output which I got.
$ rvm use 2.0.0-p247
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.
and still I am getting the same error, when bundle install