Search code examples
rubyinterpreterrvmubuntu-10.04webrick

webrick and ruby interpreter


Fist of all , I would say thank you to watch my post.

Secondly, the problem: if I type the ruby -v , how can I got witch ruby interpreter is talking to me ? I have two on my pc, one by rvm and one by a local directory.

So how can I figure out witch ruby is talking to me ?

How can I figure out what is the webrick using ?

I'm using ubuntu 10.4


Solution

  • $ which ruby
    /home/lars/.rvm/rubies/ruby-1.9.2-p0/bin/ruby
    

    If you're using RVM, you can put rvm 1.9.2 into the file .rvmrc in a project directory, and it will automatically be selected when you change to that directory. See here for details.