I am working on Rails 2.3.2 application. I installed Ruby 1.8.6 using RVM. When I tried to run bundler -v
or rails -v
etc, I am getting a error as:
venky@indeg:~/Desktop/practice/AppMonitor$ sudo gem install -v=2.3.2 rails
Successfully installed rails-2.3.2
1 gem installed
Installing ri documentation for rails-2.3.2...
Installing RDoc documentation for rails-2.3.2...
venky@indeg:~/Desktop/practice/AppMonitor$ rails -v
/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [bundler-unload-1.0.2, executable-hooks-1.3.2, gem-wrappers-1.2.7, json-1.8.1, rubygems-bundler-1.4.4, rvm-1.11.3.9] (Gem::LoadError)
from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
from /usr/local/bin/rails:22:in `<main>'
this is my rvm ruby version :
venky@indeg:~/Desktop/practice/AppMonitor$ rvm list
rvm rubies
=> ruby-1.8.6-p420 [ i686 ]
ruby-1.8.7-head [ i686 ]
ruby-1.9.1-p431 [ i686 ]
ruby-1.9.3-p551 [ i686 ]
* ruby-2.2.1 [ i686 ]
ruby-2.2.3 [ i686 ]
# => - current
# =* - current && default
# * - default
I tried some of the links like Could not find bundler (>= 0) amongst [] (Gem::LoadError) with rails 2.3.18 and Could not find rails (>= 0) amongst [] (Gem::LoadError), but didn't helped me. Please help me to get out of this..