mxcl/homebrew — Issue #9626: gnuplot configure uses libpng12.dylib, instead of libpng15.dylib
Author: nesono
Created: 2012-01-16 22:55:15+00:00
State: open

As discussed with terinjokes, brew install gnuplot fails with linking libpng12.
The workaround was a:
sudo ln -s /usr/X11/lib/libpng12.0.dylib /usr/X11/lib/libpng12.dylib

However, brew should use libpng15.dylib as it is Lion's default according to terinjokes (thanks again)

The system is Mac OS X Lion 10.7.2:
Darwin hostname 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_6