Eduardo Soubihe
Eduardo Soubihe

Reputation: 3

Ruby, rubygems and rails conflict with stock Mac OS X Leopard files

Ok guys, so I've been trying to install ruby on my mac for the past two days. What seems to be happening is that there's a conflict between the stock ruby, rubygems and rails from Mac OS X Snow Leopard and the ones I'm trying to install.

I'm using rvm to get the files, therefore I'm running rvm install 1.9.2. Installation seems to go normally, but when I run ruby -v, it shows me the old version (1.8.7). Same goes for rubygems. While rvm should installs it, when I run gem -v, old version is shown (1.3.5). \

This screenshot shows what I'm saying: http://cl.ly/2a3m1v0u331i272z2J22

Thank you.

Upvotes: 0

Views: 297

Answers (2)

Anton Chikin
Anton Chikin

Reputation: 1836

Check your PATH variable.

echo $PATH

/usr/local/bin should be before /usr/bin. If not so - change it in your /Users/Your_name/.bash_profile

Upvotes: 0

dnch
dnch

Reputation: 9605

Once you've installed RVM, you also need to tell you system that you want to use that version of Ruby. This is usually done via:

rvm use 1.9.2

However, when you open a new shell, it will revert back to the system default. If you want to set 1.9.2 as your default ruby, use:

rvm --default use 1.9.2

I suggest you look through the documentation a bit more to help you get the most out of RVM:

Basics: https://rvm.beginrescueend.com/rvm/basics/ Best Practices: https://rvm.beginrescueend.com/rvm/best-practices/

Upvotes: 2

Related Questions