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 or Google cached: . (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