Search code examples
rubymacosbashosx-snow-leopard

How do I fix my Ruby installation


I rather cleverly (or not in hindsight) installed RVM, which kept hanging whilst compiling Rubies.

I have removed the .rvm directory but now my system has reverted to Ruby 1.8.7 i.e. when I type:

ruby -v
which ruby

they both point to 1.8.7.

How do I get the ruby command to point to my 1.9.1 installation, which is located in /usr/local/lib/ruby/1.9.1? I'm on OSX 10.6.

Thanks

Robin


Solution

  • Is /usr/local/lib (why isn't it bin?) in your PATH and before /usr/lib in this case?

    What is which ruby returning?

    EDIT: My de-facto /usr/local link for OS X (and in general) is on Hivelogic