Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install image_science on Mac OSX Lion How to install image_science on Mac OSX Lion using brew?

share|improve this question
up vote 1 down vote accepted

I was attempting to install imageScience and FreeImage on Lion, but was thwarted by the error :

patching file Makefile.fip Error: Failure while executing: /usr/bin/patch -f -p1 -i 001-homebrew.diff

Per the discussion on this GitHub thread ...

I replaced the included FreeImage formula with one from this gist :

$ mv /usr/local/Library/Formula/freeimage.rb /usr/local/Library/Formula/freeimage-original.rb $ mv ~/freeimage_new_gist.rb /usr/local/Library/Formula/freeimage.rb

And was then able to brew FreeImage successfully :

==> gnumake -f Makefile.gnu

==> gnumake -f Makefile.gnu install INCDIR=/usr/local/Cellar/freeimage/3.15.1/include INSTALLDIR=/usr/local/Cellar/freeimage/3.15.1/lib

/usr/local/Cellar/freeimage/3.15.1: 4 files, 8.8M, built in 55 seconds

share|improve this answer

If you mean image_science:

ImageScience is a clean and happy Ruby library that generates thumbnails

Then this is actually a Gem for Ruby and no binary that is distributed through Homebrew. You install it with:

gem install image_science

It seems to have a runtime dependency on FreeImage, which you install through:

brew install freeimage
share|improve this answer
It's even Homebrew aware! – Daniel Beck Nov 20 '11 at 19:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.