Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-19-2011, 10:23 AM
|
#1
|
Member
Registered: Mar 2009
Distribution: Slackware
Posts: 121
Rep:
|
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.
|
|
|
07-19-2011, 03:32 PM
|
#2
|
LQ Newbie
Registered: Apr 2009
Posts: 5
Rep:
|
Help needed with Nagios installation
What is the full command line you are invoking configure with?
|
|
|
07-19-2011, 03:38 PM
|
#3
|
Member
Registered: Mar 2009
Distribution: Slackware
Posts: 121
Original Poster
Rep:
|
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.
|
|
|
07-20-2011, 12:10 AM
|
#4
|
LQ Newbie
Registered: Apr 2009
Posts: 5
Rep:
|
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.
|
|
|
07-20-2011, 02:37 AM
|
#5
|
Member
Registered: Mar 2009
Distribution: Slackware
Posts: 121
Original Poster
Rep:
|
Quote:
Originally Posted by sweetfa
I presume you have checked that /usr/lib/libgd.so.2 exists.
|
Yes, it's present.
Quote:
Originally Posted by sweetfa
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
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?
|
|
|
07-20-2011, 03:26 AM
|
#6
|
Member
Registered: Jun 2011
Distribution: Slackware
Posts: 515
|
Quote:
Originally Posted by chicken76
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?
|
|
|
07-20-2011, 05:26 AM
|
#7
|
Member
Registered: Mar 2009
Distribution: Slackware
Posts: 121
Original Poster
Rep:
|
Quote:
Originally Posted by Diantre
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
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.
|
|
|
07-20-2011, 05:56 AM
|
#8
|
Member
Registered: Mar 2009
Distribution: Slackware
Posts: 121
Original Poster
Rep:
|
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
|
|
|
11-12-2013, 09:51 AM
|
#9
|
Member
Registered: Jun 2008
Posts: 399
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 03:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|