I am having a problem with installing linecache19(dependency of ruby-debug19) for ruby 1.9.2
Here is my term output
$ rvm use 1.9.2
Using /home/bogdan/.rvm/gems/ruby-1.9.2-p180
$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
$ rvm exec gem install linecache19 --backtrace
gem install linecache19 --backtrace
rvm 1.6.20 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
ERROR: Error installing linecache19:
linecache19 requires Ruby version >= 1.9.2.
ERROR: Error installing linecache19:
linecache19 requires Ruby version >= 1.9.2.
Building native extensions. This could take a while...
The last command hangs forever until interrupted with ^C.
Any ideas how to fix that?
Specifying the source of the ruby files under rvm worked for me
You can even do something along the lines of
You can then do something like this to apply the install against all your 1.9.2 rubies.
That command will walk through each 1.9.2 ruby returned from the $(ls ..) command and apply your rvm command to each of them.
You may be having the same problem as I was. When I ran
bundle install
I got the error:From http://isitruby19.com/linecache19 I found that this worked:
What worked for me was running
gem
underrvm
, using exec:This worked for me
rvm exec
attempts to run the given command over every version of Ruby installed. Do you have another version installed other than 1.9.2 (including the system default)? If so, it's likely this version that's failing.If you
rvm use 1.9.2
, you don't need to do anything special to have commands execute in the context of Ruby 1.9.2--RVM sets up the environment when you runuse
. Just do agem install linecache19 --backtrace
.