10.9 is an early beta version of the OS. [Edit: note the response date in July 2013] If I were running 10.9, I would assume that I would have to reinstall the operating system from scratch at least 2 times. (At least once during the beta cycle, because, well, it's beta, and once, when 10.9 comes out in the general release, because, well, beta).
Given this, I propose four courses of action (choose 1 or many):
- Work with the RVM guys and dig 10.9, possibly by changing the compiler environment and get Ruby 1.8.7 compilation. This is more complicated because technically this material is under the NDA.
- Instead, configure the virtual machine and run Ruby 1.8.7 on the virtual machine. Bonus points for using Vagrant and Chef / Puppet, because you may need to rebuild the virtual machine. (Just save the Vagrantfile and Puppet or Chef configuration files to Github / Dropbox / whatever so you can clone them and rebuild your virtual machine from scratch.)
- OR just reboot to 10.8 to get production work. 10.8 is the OS level at the production level, 10.9 should be treated with caution - it can eat your work. It really should not be used for production purposes (aka: daily Ruby code entry). If you write a 10.9 application only in Cocoa / Objective-C (or update RubyMotion or something else), it may be different (but I still keep good backups and be careful about them).
- Work on updating the code base for Ruby 2.0, as Ruby 1.8.7 is no longer officially supported.
Edit (October 24, 2013): If you are here because you just installed Mavericks (released October 22, 2013), you want Ruby 1.8.7 to work a few days after this release, and RVM does not work for you (because you are impatient and cannot wait), here is what you can do (which should work, although I am not an rbenv user):
- Use macports to install
port install ruby . This is Ruby 1.8.7. This compilation worked for me on my Mavericks machine (although you will need to install Macports from the source when writing this and install the command line development tools even if you have Xcode 5 installed. Yes, really). - Now install rbenv .
/opt/local/bin/ruby1.8 in the ~/.rbenv/versions/ folder. In particular ~/.rbenv/versions/ruby-1.8.7-p374- Read the rbenv documentation, but it should work now! (At least from the documentation. Again, not a
rbenv user, but play it on TV).
I'm sure you can do this with homebrew too, but I know that Ruby 1.8.7 installs the latest versions of Macports correctly, because that is what I use (and it just installed cleanly for me).
source share