Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 updated brew sometime ago and recently tried to run webalizer and now get this error:

libpng warning: Application built with libpng-1.2.41 but running with 1.5.10 gd-png error: cannot allocate libpng main struct

I ran libpng-config --cflags --ldflags to get the CFLAGS and LDFLAGS variables, and added them to the info file:

def install
  ENV['LDFLAGS']='-L/opt/X11/lib -lpng15'
  system "./configure", "--disable-debug",
  system "make install"

brew builds from this info file okay, but I still have the libpng error.

How can I build webalizer so it's using the right libpng library?

share|improve this question

You must log in to answer this question.

Browse other questions tagged .