Gleaned these instructions from a rubyonrails-talk thread.
Another thing is mysql is a bit funky,
you can’t use the built in control panel, but following these
instructions makes it work.
Full installation instructions (full credit goes to: Michael Steinfeld for figuring this out)
- I started with a clean install of Leopard.
- Install macports for 10.4
- Install the xcode dev tools from the Leopard disk – *be sure to
also install the 10.3 sdk from the xcode dev tools install* - sudo port install freeimage
-
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_freeimage/work/FreeImage
and change this:
LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk
LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdkto this
LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk/usr/lib
LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk/usr/lib -
sudo port install freeimage
- sudo gem install -y imagescience
- cd /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib
-
edit inline.rb
look for the line
flags = @flags.join(’ ‘)
and change it to
flags = @flags.join(’ ‘) + ‘ -lruby’
-
remove ~/.ruby_inline
About the Author