Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
*** GD, PNG, and/or JPEG libraries could not be located... *********
Boutell's GD library is required to compile the statusmap, trends
and histogram CGIs. Get it from http://www.boutell.com/gd/, compile
it, and use the --with-gd-lib and --with-gd-inc arguments to specify
the locations of the GD library and include files.
NOTE: In addition to the gd-devel library, you'll also need to make
sure you have the png-devel and jpeg-devel libraries installed
on your system.
NOTE: After you install the necessary libraries on your system:
1. Make sure /etc/ld.so.conf has an entry for the directory in
which the GD, PNG, and JPEG libraries are installed.
2. Run 'ldconfig' to update the run-time linker options.
3. Run 'make clean' in the Nagios distribution to clean out
any old references to your previous compile.
4. Rerun the configure script.
NOTE: If you can't get the configure script to recognize the GD libs
on your system, get over it and move on to other things. The
CGIs that use the GD libs are just a small part of the entire
Nagios package. Get everything else working first and then
revisit the problem. Make sure to check the nagios-users
mailing list archives for possible solutions to GD library
problems when you resume your troubleshooting.
./configure --with-command-group=nagcmd
make clean
make all
make install
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Setting up Install Process
No package gd available.
No package gd-devel available.
No package png-devel available.
No package jpeg-devel available.
Nothing to do
You may need to enable some repos . . . what distro/version are you running?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
you would need to use apt-get and find the appropriate ubuntu package names, they often differ from cent\rhel names to some extent.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
apt-get install libgd2-xpm php5-gd libgd2-xpm-dev
./configure --with-command-group=nagcmd
make clean
make all
make install
make install-cgis
/etc/init.d/nagios restart
If you see the error:
*** GD, PNG, and/or JPEG libraries could not be located... *********
[snip]
Then you are still missing required packages.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
diverseft wrote:As stated before, my Linux skills basic hence the struggle. Why would this be required since upgrading Nagios?
Not entirely sure. Most of the packages you were missing were most likely required for earlier versions as well. Maybe they were too far out of date?
Anyways, glad we could help you resolve this. You may want to make a mental (or physical) note about which packages you had to install for future cases. Happy trails.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.