Skip to content

Instantly share code, notes, and snippets.

@mtcmorris
Created July 30, 2011 01:24
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mtcmorris/1115075 to your computer and use it in GitHub Desktop.
Save mtcmorris/1115075 to your computer and use it in GitHub Desktop.
Fix lion libpng
Fixing Lion libpng issues
-------------------------
Until this issue https://github.com/mxcl/homebrew/issues/4468 is resolved installing Lion screws up ImageMagick's png support. The following steps are a hacky work around to get things going again. `identify: memory allocation failed` is the error message you'll receive before applying the fix.
brew uninstall imagemagick
cd /usr/X11R6/lib
sudo mv libpng.dylib libpng.old.dylib
sudo ln -s libpng12.0.dylib libpng.dylib
brew install imagemagick
@elspoono
Copy link

Missing a k on imagemagic at the end there.

Worked great, thanks. That's the exact error I was getting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment