Webalizer configure with DNS problem

Eric Featherstone eric.featherstone at gmail.com
Sun Aug 15 03:47:59 PDT 2010

I wanted to use the reverse DNS lookup and GeoDB features of webalizer
but had quite a struggle to get it to work.

I ran "sudo port install webalizer".

This of course installs all the dependencies for webalizer including
db47 that I understand is required for the DNS/GeoDB option. I can see
that db47 is installed e.g. port list installed and also ls
/opt/local/include/db47 and ls /opt/local/lib/db47.

However when it comes to configure webalizer according to the log
messages it can't find db.h, despite it being installed as above, so
disables both DNS & GeoDB!

The only way I could get it to find the db47 library and build using
it was as follows (apologies for line-wrap):

sudo port clean webalizer
sudo port build webalizer
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_webalizer/work/webalizer-2.21-02
sudo env CPPFLAGS="-I/opt/local/include/db47/"
LDFLAGS="-L/opt/local/lib/db47/" ./configure
sudo make clean
sudo make
sudo port install webalizer

However, this introduces a new problem at runtime, namely:
dyld: Library not loaded: /opt/local/lib/libjpeg.62.dylib
  Referenced from: /usr/local/lib/libgd.2.dylib
  Reason: image not found

And thus webalizer does not run :-(

I do not get that error message it I do a straightforward sudo port
install webalizer.

However, as I've said, even though --enable-dns is actually the
default option and macports installs db47, it can't find db47 so
disables dns/GeoDB.

So my question is; is this a bug or something I'm doing wrong?
And also is this the right mailing list for this message?

Many thanks,

More information about the macports-users mailing list