I had been fooling around with rails, and somehow had ruby version 1.9 something and rails 3.2 installed. I am sure don’t recall installing them, but they were there, along with git and hg.
I just did a fresh install of Lion and the ruby version is only 1.8.7, and rails does not seem to be installed.
I did have Xcode installed before. Would Xcode have upgraded my ruby version? All the instructions I have found on the web suggest using ruby-build or rvm. But I don’t recall using those last time …
Am I losing my mind?
Does Xcode 4.3 include git?
~S
I’m not sure how you had a 1.9 build with Rails before, but I’m fairly certain they don’t come on OSX by default.
If you’ve installed Xcode 4.3, you might end up having some issues when trying to install some older builds of Ruby. Regardless, you’re going to want to install the command-line tools from Xcode before installing a new ruby. I would highly recommend you use RVM, even if you didn’t use it before. It just makes things a lot cleaner.
If you want to install any ruby versions <1.9.3, you’ll want to read this blog post: http://jfire.io/blog/2012/03/02/xcode-4-dot-3-homebrew-and-ruby/
^
Do note that the above link assumes you have homebrew installed.
Hope I was of some help.