Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

LABS
Installing Freeimage/ImageScience on OS X 10.5 Leopard

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)

  1. I started with a clean install of Leopard.
  2. Install macports for 10.4
  3. 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 freeimage
  5. 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.sdk

    to this

    LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk/usr/lib
    LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk/usr/lib

  6. sudo port install freeimage

  7. sudo gem install -y imagescience
  8. cd /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib
  9. edit inline.rb

    look for the line

    flags = @flags.join(’ ‘)

    and change it to

    flags = @flags.join(’ ‘) + ‘ -lruby’

  10. remove ~/.ruby_inline

Comments
  1. Adam Maddox says:

    Nice work Alex. It appears that the changes needed for a source install are the same as those for mac ports. I’ve put some directions for installing from source here

  2. Nathaniel Bibler says:

    Just wanted to mention that item #7 should read:

    sudo gem install -y image_science

    (just in case this comment gets formatted, it should be imageUNDERSCOREscience)

    Also, depending on your version of GEM, and I believe the one that ships with Leopard falls into this category, the -y option is the default and deprecated. So, -y may also be left out.

    Thanks for the write up! And, very nice job.

  3. Mike Perham says:

    I followed the directions but was still having problems. Removing all mention of the PPC architecture from Makefile.osx solved the problem.

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *