Nagios Installation on Solaris 10


#1

Hi All -
I have been struggling to install nagios 3. 0 on solaris 10.
I tried to run the configure the follwoing way
./configure --prefix=/usr/local/nagios --sysconfdir=/etc/nagios --localstatedir=/var/nagios --with-command-group=nagcmd --libexecdir=/usr/local/nagios/plugins --with-command-group=nagcmd --with-gd-lib=/usr/lib64 --with-gd-inc=/usr/include

I am getting the following errors

*** 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 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.


Creating sample config files in sample-config/ …
./configure: line 8487: perl: command not found
./configure: line 8488: perl: command not found
./configure: line 8489: perl: command not found
./configure: line 8490: perl: command not found
./configure: line 8491: perl: command not found
./configure: line 8493: perl: command not found
./configure: line 8494: perl: command not found
./configure: line 8495: perl: command not found
./configure: line 8496: perl: command not found
./configure: line 8498: perl: command not found
./configure: line 8499: perl: command not found
./configure: line 8500: perl: command not found
./configure: line 8501: perl: command not found

Your help is appreciated.

Regards


#2

looks like you are missing the perl, GD, libjpg and libpng packages… the first one is a show-stopper.


#3

Thanks. That was it. Perl is not in the correct path and I set it correctly and the configuration went fine after that

Regards