R
Richard Kilmer
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
_____
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