From: ptkwt@... (Phil Tomson) Date: 2005-04-30T10:24:27+09:00 Subject: Re: Building Ruby extensions on OS X Tiger In article , Chad Fowler wrote: >On 4/29/05, Richard Kilmer wrote: >> Tony Arnold posted this on the Rails wiki: >> _____ >> >> Mac OS X Tiger ships with Ruby 1.8.2 pre-installed. However, >> rbconfig.rb needs to be edited if you want to build any gems. (from >> Rich...not gems, native extensions) >> >> Edit rbconfig.rb >> >> sudo pico -w /usr/lib/ruby/1.8/powerpc-darwin8.0/rbconfig.rb >> Now remove -arch i386 from the CFLAGS and LDFLAGS variables. >> >> You will also need to change: >> CONFIG["LIBRUBYARG_STATIC"] = "-l$(RUBY_SO_NAME)-static" >> to: >> CONFIG["LIBRUBYARG_STATIC"] = "" >> _____ >> >> NOTE: This is only important if you are building native extensions >> (not pure ruby ones)...but it does suck when you run into it...so its >> worth fixing. >> >> Wiki link: http://wiki.rubyonrails.com/rails/show/HowtoInstallOnOSXTiger >> >> Chad is working on a gem that you can install which fixes this too. >> >> -rich >> >> > >sudo gem install fixrbconfig >sudo fixrbconfig > You are indeed on the cutting edge ;-) Phil