Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

Installing Freeimage/ImageScience on OS X 10.5 Leopard

Alex Chaffee
Wednesday, November 7, 2007

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

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

3 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

    December 12, 2007 at 11:50 pm

  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.

    December 12, 2007 at 11:50 pm

  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.

    December 12, 2007 at 11:50 pm

Add New Comment Cancel reply

Your email address will not be published.

Alex Chaffee

Recent Posts

  • Code Monkey
  • RubyGems Warningitis Outbreak
  • Upgrading your Rakefile from RSpec 1.3 to RSpec 2
Subscribe to Alex's Feed

Author Topics

ruby (14)
gem (5)
ruby on rails (24)
erector (2)
rspec (4)
activerecord (4)
database (3)
sinatra (1)
postgresql (1)
css (1)
html (1)
git (2)
mac (5)
java (3)
agile (12)
iphone (1)
migrations (1)
fun (5)
dot (1)
graphing (1)
subversion (1)
test (1)
demeter (1)
puzzler (1)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >