Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I had previously ruby 1.8 on my Ubuntu 10.10, which I removed through Synaptics. Then I have installed ruby 1.9.1 also via Synaptics (which is then saying that itself is version 1.9.2). Then I installed ruby-debug19 and rspec gems with sudo gem install ruby-debug19 rspec

However I can't start rdebug or rspec, but I can invoke the debugger from inside my ruby script, so the debugger is working. I inspected the starting scripts rdebug and rspec and then I realized that they are still old scripts back from ruby1.8 time. In other words, the current 1.9 install of these gems haven't created the starting scripts anywhere.

What is the easiest solution for a lazy soul like me? It looks like removing-reinstalling ruby 1.9.2 won't help, and installing these gems over and over again won't create the starting scripts.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

As far as I'm aware, Rubygems on Ubuntu and Debian use /var/lib/gems/$ruby_version as their installation root (to keep gems installed via apt, and manually-installed gems cleanly separated).

In your case, since you're using Ruby 1.9, the executables should be installed in /var/lib/gems/1.9/bin. Try adding something like this into your ~/.bashrc file:

export PATH="/var/lib/gems/1.9/bin:$PATH"
share|improve this answer
    
That solved it! Thanks. –  karatedog Mar 14 '11 at 8:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.