LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-19-2011, 10:23 AM   #1
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 74

Rep: Reputation: 1
Question Help needed with Nagios installation


I'm trying to install Nagios on a machine running Slackware-12.2 and keep getting this error:

Code:
*** 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.
I have installed the packages:
  • gd-2.0.35-i486-2
  • libjpeg-6b-i486-5
  • libpng-1.2.44-i486-1_slack12.2
Ran ldconfig, supplied the ./configure script with the --with-gd-lib and --with-gd-inc arguments, to no avail.
Somehow I have the feeling I'm missing some libraries, but can't really "put my finger" on them.
 
Old 07-19-2011, 03:32 PM   #2
sweetfa
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
Help needed with Nagios installation

What is the full command line you are invoking configure with?
 
Old 07-19-2011, 03:38 PM   #3
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 1
I've tried with no arguments and also:
Code:
./configure --with-command-group=nagcmd --with-gd-lib=/usr/lib --with-gd-inc=/usr/include
Still the same error appears and every graphical cgi in Nagios is missing.
 
Old 07-20-2011, 12:10 AM   #4
sweetfa
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
Help needed with Nagios Installation

I presume you have checked that /usr/lib/libgd.so.2 exists.

Are you running in a 32 or 64 bit environment?

And have you tried running configure with the full path to the library file instead of just the directory. I haven't been able to find my installation command line and it was such a long time ago.
 
Old 07-20-2011, 02:37 AM   #5
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by sweetfa View Post
I presume you have checked that /usr/lib/libgd.so.2 exists.
Yes, it's present.

Quote:
Originally Posted by sweetfa View Post
Are you running in a 32 or 64 bit environment?
It's Slackware 12.2, so it's 32 bit.

Quote:
Originally Posted by sweetfa View Post
And have you tried running configure with the full path to the library file instead of just the directory. I haven't been able to find my installation command line and it was such a long time ago.
Tried it and no change.

Here are the lines preceding the error in my first post:
Code:
checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... no
checking for gdImagePng in -lgd (order 3)... no
checking for gdImagePng in -lgd (order 4)... no
Do you know if png-devel and jpeg-devel are the same thing as libpng and libjpeg?
 
Old 07-20-2011, 03:26 AM   #6
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 390

Rep: Reputation: 150Reputation: 150
Quote:
Originally Posted by chicken76 View Post
Do you know if png-devel and jpeg-devel are the same thing as libpng and libjpeg?
The "devel" packages in other linux distributions usually contain C/C++ headers that go in /usr/include. Slackware packages provide both the binaries/libraries and headers, so yes, libpng and libjpeg already have the "devel" files.

A question regarding your problem. Do you know which library isn't found? Or is it the three of them, libpng, libjpeg and gd? I mention this because you said you tried this command:

Code:
./configure --with-command-group=nagcmd --with-gd-lib=/usr/lib --with-gd-inc=/usr/include
Maybe if you pass to configure similar options for both libjpeg and libpng?
 
Old 07-20-2011, 05:26 AM   #7
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by Diantre View Post
A question regarding your problem. Do you know which library isn't found? Or is it the three of them, libpng, libjpeg and gd?
That's the thing, whether I supply those arguments or not, the result is the same (no detailed information on what was found and what wasn't). And since I don't know C, I have no idea how to check this other than looking in config.log for any failures.
A couple of things caught my attention:
Code:
configure:6441: checking for main in -liconv
configure:6470: gcc -o conftest -g -O2   conftest.c -liconv   >&5
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/bin/ld: cannot find -liconv
collect2: ld returned 1 exit status
and
Code:
configure:6502: checking for gdImagePng in -lgd (order 1)
configure:6535: gcc -o conftest -g -O2   conftest.c -lgd -lttf -lpng -ljpeg -lz -lm  >&5
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/bin/ld: cannot find -lttf
collect2: ld returned 1 exit status
Googling for liconv turned out some interesting results. It seems gd fails when liconv or libconv is not found. I see Slackware does not have this library in a package, but sources are available for libiconv at http://www.gnu.org/s/libiconv/
Do you think it's worth compiling and installing it?
However, searching for lttf did not turn out anything useful. Do you have any idea what it might be?

Quote:
Originally Posted by Diantre View Post
Maybe if you pass to configure similar options for both libjpeg and libpng?
I've checked the configure script and it does not have such options.
 
Old 07-20-2011, 05:56 AM   #8
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 1
UPDATE:

After installing the following packages, the configure script partially passed the GD test:
  • libXpm
  • libX11
  • fontconfig
  • libxcb
  • libXau
  • libXdmcp
Here's an excerpt from config.log:
Code:
configure:6502: checking for gdImagePng in -lgd (order 1)
configure:6535: gcc -o conftest -g -O2   conftest.c -lgd -lttf -lpng -ljpeg -lz -lm  >&5
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/bin/ld: cannot find -lttf
collect2: ld returned 1 exit status
configure:6568: result: no
configure:6575: checking for gdImagePng in -lgd (order 2)
configure:6608: gcc -o conftest -g -O2   conftest.c -lgd  -lpng -ljpeg -lz -lm  >&5
configure:6614: $? = 0
configure:6634: result: yes
configure:6839: checking for gdImageCreateTrueColor in -lgd
configure:6874: gcc -o conftest -g -O2   conftest.c -lgd   >&5
configure:6880: $? = 0
configure:6898: result: yes
 
Old 11-12-2013, 09:51 AM   #9
xj25vm
Member
 
Registered: Jun 2008
Posts: 262

Rep: Reputation: 17
Quote:
After installing the following packages, the configure script partially passed the GD test:

libXpm
libX11
fontconfig
libxcb
libXau
libXdmcp
This is an old thread - but this topic is still current. Anybody trying to install Nagios on Slackware 14.1 without X will hit the same error message. However, unlike the case of the OP, installing the suggested packages will go past the error completely. Thanks for that!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed getting Nagios Check_logfiles working with Windows martin2011 Linux - Newbie 1 04-09-2011 02:32 AM
Nagios Help Needed.................... zoomzatag Linux - Newbie 1 10-19-2010 07:30 AM
Nagios Installation Help needed sunil_sutar Linux - Newbie 3 12-10-2008 07:30 AM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 0 07-18-2006 08:33 PM


All times are GMT -5. The time now is 08:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration