Installing linecache19 for Ruby 1.9.2 via rvm

Viewed 14076

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?

8 Answers

What worked for me was running gem under rvm, using exec:

'sudo rvm exec gem install ruby-debug19'
'sudo rvm exec gem install linecache19'
Related