Install ImageScience and FreeImage on Mac OS X

Posted on December 17th, 2008 by Jeff Lin

If you plan on allowing users to upload images to your Rails site, you’re probably using Rick Olson’s attachement_fu plugin. You’ve also probably come across Mike Clark’s File Upload Fu tutorial.

Step one of Mike’s tutorial requires you to install an image processing library. ImageScience is simple and does the trick. To save you some time, follow my steps to get things installed and running quickly on Mac OS X.

  1. Install MacPorts. I’d recommend just downloading the “dmg” disk image and running the installer.
  2. Install FreeImage:
    sudo port install freeimage
  3. Install the RubyInline gem:
    sudo gem install RubyInline
  4. Install ImageScience:
    sudo gem install image_science

That should get you through step one of Mike’s tutorial in no time.

5 Comments so far

1 | Leonardo

Congratulations man! Thank you very much

Posted at 8:15 pm on July 1st, 2009
2 | Atif Aslam

Thanks Dear, Its GreaT Help :)

Posted at 3:07 pm on September 7th, 2009
3 | Darrin

I was getting this error on OS X and installing the RubyInline gem fixed it. Thanks!

Problems loading ImageScienceProcessor: no such file to load — inline

Posted at 11:35 pm on October 9th, 2009
4 | Josh P

Small addition: after installing MacPorts, quit and open terminal if you have it installed.

Thanks for the help here!

Josh

Posted at 11:49 am on March 17th, 2010
5 | Josh P

^^

I meant “running” not “installed”

Posted at 11:50 am on March 17th, 2010

Write a new comment


Comment: