That does not answer the question. When you have multiple versions of ruby installed (such as debian/ubuntu's one and one compiled from source), how do I tell gem to use my newly compiled ruby instead of my distributiion's version?
Support Staff4 Posted by Eric Hodel on 11 Aug, 2010 08:14 PM
Set your PATH env var to prefer your newly compiled ruby or use a complete path to the newly installed ruby's gem. gem is installed alongside the ruby it was installed with (/usr/local/bin/ruby will have /usr/local/bin/gem after installing RubyGems).
PS: I did answer the question you asked. If you want to know how to do a specific thing you will need to ask a specific question. We can't read your mind through the internet
Thanks for your reply.
I found the cause of my confusion: I complied ruby but I did not compile gem, thus the system picked up my OS's version of gem. Thus my PATH was correct without leading to the expected result.
Anyway, I also found a great solution to all version issues: RVM (http://rvm.beginrescueend.com). Takes a little bickering to install and understand at first, but will save you tons of trouble later.