Go ahead


Jason-17:/usr/local jah# sudo -s
Jason-17:/usr/local root# rm /usr/bin/ruby
Jason-17:/usr/local root# rm -rf /usr/lib/ruby/
Jason-17:/usr/local root# ln -s /usr/local/bin/ruby /usr/bin/ruby
Jason-17:/usr/local root# ln -s /usr/local/lib/ruby /usr/lib/ruby
Jason-17:/usr/local root# ruby -v
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.3.0]

Damn apple

Update: sorry to waste your time, this was purely to get dan to comment. Love ya Dan!

·:· Posted 27 January 2006, 07:37 by Jason Hoffman to Ruby  |  

  1. This is one reason why I use DarwinPorts for my entire Ruby tree, and put /opt/local/bin in my PATH before the rest of it. If Apple does update Ruby to 1.8.4 it might end up overwriting your installation under /usr/local unless it’s clever enough to remove the /usr/lib/ruby symlink first. I’ve never had any problems with using DarwinPorts to do it, and Rails uses the correct interpreter (#!/opt/local/bin/ruby) since I installed Rails using /opt/local/bin/gem.

    Jeff Abbott    27 January 2006, 12:48    #
  2. ??? Why not just put /usr/local/bin first in your path? When I do that I can see both Ruby versions but the /usr/local/bin/ruby runs by default. Never had a problem with doing it this way. I also don’t want to worry about breaking any dependency the system may have on /usr/bin programs that I will be replacing in /usr/local/bin.

    JBrickley    27 January 2006, 14:43    #
  3. I’m kinda with Jeff and JBrickley on this one – but I’m loathe to just go rm-ing against the wishes of Cupertino willy nilly.

    Jim Ray    29 January 2006, 17:46    #
  4. I would like to humbly suggest that people consider this article and then follow these steps rather than following the steps listed above.

    Dan Benjamin    2 February 2006, 17:36    #
  5. Concur, that’s what I’ve done. Love that HiveLogic site Dan! See you went through another site redesign, looking sharp!

    JBrickley    3 February 2006, 03:37    #