Ubuntu 11.04 + RubyDebug

I have a fresh Ubuntu 11.04 install and have installed Ruby full (sudo
apt-get install ruby1.9.1-full). I have also installed Ruby Gems 1.8.5,
and RubyMine.

I cannot get gem RubyDebug (and several other gems) to install from
cmd-line

  • it complains that linecache19 requires Ruby 1.9.2. I have also
    installed rvm because googling around showed some people with same
    problem was able to solve using rvm - but not working for me.

I have added some commands and results below.

Any ideas how to get this working? I’m willing to wipe the drive and
start fresh if needed.

Thanks,

–Bob

ubuntu@ubuntu-VirtualBox:/usr/local/rvm/src$ sudo gem install
ruby-debug19 – --with-ruby-include=./ruby-1.9.2-p180
ERROR: Error installing ruby-debug19:
linecache19 requires Ruby version >= 1.9.2.
ubuntu@ubuntu-VirtualBox:/usr/local/rvm/src$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]
ubuntu@ubuntu-VirtualBox:/usr/local/rvm/src$ which ruby
/usr/bin/ruby
ubuntu@ubuntu-VirtualBox:/usr/local/rvm/src$ ls -al /usr/bin/ruby
lrwxrwxrwx 1 root root 34 2011-06-22 23:44 /usr/bin/ruby ->
/usr/local/rvm/bin/ruby-1.9.2-p180
ubuntu@ubuntu-VirtualBox:/usr/local/rvm/src$ ls -al
total 32
drwxrwsr-x 6 root rvm 4096 2011-06-22 23:14 .
drwxrwsr-x 23 root rvm 4096 2011-06-22 22:51 …
drwxr-xr-x 24 501 staff 12288 2011-06-22 23:14 ruby-1.9.2-p180
drwxr-xr-x 8 12498 40000 4096 2011-03-08 21:54 rubygems-1.6.2
drwxrwsr-x 17 root rvm 4096 2011-06-22 21:21 rvm

ubuntu@ubuntu-VirtualBox:/usr/local/rvm/src$ env | grep -i gem
ubuntu@ubuntu-VirtualBox:/usr/local/rvm/src$ env | grep -i ruby
OLDPWD=/usr/local/rvm/src/ruby-1.9.2-p180

Since you’ve installed 1.9.2 under rvm, what if you do

rvm use 1.9.2

before doing the gem install?

Brian C. wrote in post #1007366:

Since you’ve installed 1.9.2 under rvm, what if you do

rvm use 1.9.2

before doing the gem install?

I had tried that earlier, but I tried again with same result See below.

I appreciate your help. All ideas are welcome!

–Bob

ubuntu@ubuntu-VirtualBox:/usr/local/rvm/src$ sudo …/bin/rvm use 1.9.2
Using /usr/local/rvm/gems/ruby-1.9.2-p180
ubuntu@ubuntu-VirtualBox:/usr/local/rvm/src$ sudo gem install
ruby-debug19 – --with-ruby-include=./ruby-1.9.2-p180
ERROR: Error installing ruby-debug19:
linecache19 requires Ruby version >= 1.9.2.