If you're new here, you may want to subscribe to our RSS feed. Thanks for visiting!
So I upgraded to Leopard the other day (actually I did a clean install), and all is well until I attempted to start a rails project that uses image_science. image_science depends on Freeimage as I’m sure you’re aware, and the Freeimage install was failing spectacularly. Google to the rescue! Here’s how I got it to install:
From http://www.ruby-forum.com/topic/129554#578387
1. I started with a clean install of Leopard.2. Install macports for 10.43. Install the xcode dev tools from the Leopard disk – *be sure to also install the 10.3 sdk from the xcode dev tools install*4. sudo port install freeimage5. cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_freeimage/work/FreeImageand change this:LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdkto thisLIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk/usr/lib LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk/usr/lib6. sudo port install freeimage7. sudo gem install -y imagescience8. cd /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib9. edit inline.rblook for the lineflags = @flags.join(' ')and change it toflags = @flags.join(' ') + ' -lruby'10. remove ~/.ruby_inline
Some notes:
Step #5 pertains to the file Makefile.osx
Before attempting to install freeimage again in step #6, be sure to cd out of /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_freeimage/work/FreeImage
I just did a “cd ~” before “sudo port install freeimage”
Big thanks and all credit to original posters Thomas Mango and Michael Steinfeld for this information.
Amazon Web Services
5 Comments
Thanks for the help. I also had to change MacOSX10.3.9 to MacOSX10.5 everywhere in the Makefile.osx to make it work.
The Image Science gem has an underscore in it.
sudo gem install -y image_science
not sure what magic led to this, but I didn’t need to install the 10.3 sdk or make any makefile mods. A file called patch-Makefile.osx-Leopard.diff seemed to automatically update the library paths.
just
sudo port install freeimage
and
sudo gem install image_science
granted i’m running the installers 8 months later
not sure what magic led to this, but I didn’t need to install the 10.3 sdk or make any makefile mods. A file called patch-Makefile.osx-Leopard.diff seemed to automatically update the library paths.
just
sudo port install freeimage
and
sudo gem install image_science
granted i’m running the installers 8 months later
hey ))
its very reasonable point of view.
Good post.
realy good post
thank you