From: Michael Steinfeld Date: 2007-10-29T02:13:57+09:00 Subject: Re: Ruby Changes in Leopard On 10/28/07, John Tsombakos wrote: > Pat Maddox wrote: > > Are there any compelling reasons to use the built-in install? I was > > just planning on using macports cause it works so well. > > > > Pat > > The question I haven't seen asked (or answered) is how would I switch > from my /usr/local version of Ruby & Rails (and gems) to the Leopard > stock versions? I can't just pluck /usr/local/bin out of my PATH, > because there are other things installed there (ImageMagick, Subversion > [well, that's now system installed though], etc.) ? > > Do I just delete/rename the applications? (ruby, irb, rake, svn*, etc) you can append /usr/local to the end of your PATH instead. if /usr/bin is before /usr/local/bin in your PATH ENV then /usr/bin/whatever will be found/used first. I'd consider cleaning up your source_cache as well, and removing ~/.ruby_inline. Also there is an issue with the compiler flags set using RubyInline that you will want to fix. I wrote a sed script to do it. Very helpful if you need to fix it on multiple machines. sudo sed -i -e "387,1s/flags\ =\ @flags.join(\'\ \')/&\ \+\ \'\ -lruby\'/" /usr/lib/ruby/user-gems/1.8/gems/RubyInline-3.6.4/lib/inline.rb > -- > Posted via http://www.ruby-forum.com/. > > -- Michael Steinfeld Linux Admin/Developer AIM: mikesteinfeld GTALK: mikeisgreat@gmail.com