Missing scripts?

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Wed Mar 5 04:41:58 CET 2003


Dear Sir,

I am writing to thank you for your reply and say,

On Tue, Mar 04, 2003 at 03:50:53PM -0800, Greg Webster wrote:
> On Wed, 5 Mar 2003 09:55:35 +1100: Stanley Hopcroft <Stanley.Hopcroft at IPAustralia.Gov.AU> wrote:
> > that it looks to me as if configure failed to find the gd libraries used 
> > to build the graphics for the CGI programs.
> > 
> > I suggest,
> > 
> > 1 Ensure that libgd.so (and or .a) is on your system 
> 
> # locate libjpeg.so
> /usr/lib/libjpeg.so.62
> /usr/lib/libjpeg.so.62.0.0
> # locate libgd.so
> /usr/lib/libgd.so.1
> /usr/lib/libgd.so.1.8.4
> /usr/lib/libgd.so.2
> /usr/lib/libgd.so.2.0.1
> # locate libpng.so
> /usr/lib/libpng.so.2
> /usr/lib/libpng.so.2.1.0.12
> /usr/lib/libpng.so.3
> /usr/lib/libpng.so.3.1.2.1
> 
> I've ran the following with the same result:
> ./configure --with-gd-lib=/usr/lib --with-gd-inc=/usr/include
> (not sure exactly what it's looking for in --with-gd-inc)
>

gd headers (.h files). If gd.h is _not_ in /usr/include this is futile. 
I would guess that this is an unlikely place to find it.

 
> > What OS are you running. FreeBSD also fails to find gd without configure 
> > options.
> 
> Debian 'testing' release.
> 
> Here is what it gives me for errors:
> checking for gdImagePng in -lgd (order 1)... no
> checking for gdImagePng in -lgd (order 2)... no
> checking for gdImagePng in -lgd (order 3)... no
> 

you can find out exactly what's going on by reading configure (/gd might 
be a good place to start).

What configure is doing is trying to locate your headers and libraries 
by compiling stuff like

#include <gd.h>
main() {
 /* some gd lib call */
}

with gcc -I <path_to_gd_headers> -L <path_to_gd_lib> -l gd .. yada 
test.c

when it fails, it reports what you see.

In other words, it can't find something.

Since you have eliminated the libraries, it must be headers.

On this FreeBSD system gd.h and friends are in /usr/local/include/gd

I use --with-gd-inc=/usr/local/include/gd --with-gd-lib=/usr/local/lib 
as arguments to configure.

Try and locate gd.h (with find) and then feed the path to --with-gd-inc


> *** 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.
> 
> ...I wish this gave more concise errors...if it's not finding one specific library, then I wanna know that!
> 

It wants to _attract_ your attention and _tell_ you that it's blown up 
and things will not work as expected.

Unfortunately, no one wants to hear bad news so this _and even louder 
versions_ is usually ignored.

'Welcome to my world' (as a famous man once said [Burton Strauss III]).

> Thanks!
> 
> Greg

FWIW, you need JPEG support also.

HTH,

Yours sincerely.

-- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list