View FAQ

[ Return To FAQ Index | Search The FAQs ]


FAQ Database : Nagios : Compiling

Title:GD, PNG, and/or JPEG libraries could not be located on OpenBSD 3.4
FAQ ID:F0227
Submitted By:Brian Wood 
Last Updated:01/08/2005

Description:When building Nagios 1.2 on OpenBSD 3.4, it fails to find the gd library (in my case, gd was installed from an OpenBSD package). 

Solution:Build with the following command-line:

LDFLAGS="-L/usr/local/lib -lttf" ./configure --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/include

See http://lists.elvandar.org/pipermail/openbsd-misc/2004-January/000435.html or Google cached: http://216.239.41.104/search?q=cache:HOCBmDj-arAJ:lists.elvandar.org/pipermail/openbsd-misc/2004-January/000435.html+openbsd+nagios&hl=en&ie=UTF-8 . (That link doesn't say you need --with-gd-*, which in my case, I did. Otherwise the compile fails about halfway through). 

Keywords:OpenBSD gd