Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers 2

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 ...

https://github.com/mxcl/homebrew/pull/7320

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

https://gist.github.com/1403082

$ 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
add comment

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
add comment

Your Answer

 
discard

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.