On Mon, 2009-03-30 at 23:31 -0700, Jason Dagit wrote:
> On Mon, Mar 30, 2009 at 10:33 PM, Michael Robinson
> <[email protected]> wrote:
> > [ad...@web nut-2.2.2]$  ./configure --with-user=ups --with-group=nut
> > --mandir=/usr/share/man --docdir=/usr/share/doc --prefix=/usr
> > --sysconfdir=/etc/ups --with-cgi
> >
> > configure: error: libgd not found, required for CGI build
> >
> > [ad...@web nut-2.2.2]$ rpm -qa | grep gd
> > sysklogd-1.4.1-26_EL
> > gdbm-1.8.0-24
> > php-gd-5.1.6-1.2.1.centos
> > gd-devel-2.0.28-5.4E.el4_6.1
> > gd-2.0.28-5.4E.el4_6.1
> > gd-progs-2.0.28-5.4E.el4_6.1
> >
> > I am stumped as to what is missing or what I need to do differently to
> > get this to configure and compile.
> 
> I don't know anything about libgd, but presumably from the output of
> rpm we can say it's installed.  Next I would look at config.log to see
> if you can figure out why the test for libgd failed.  For example, the
> configure script could be looking in the wrong path.  In a case like
> that the next step is to figure out if you just need a symlink or
> similar to get it working.  Also, there may be a flag you can pass to
> configure that tells it where your libgd is installed.
> 
> I've also seen configure scripts give output like this when they can
> find the required library but it doesn't have the correct api.  In
> that situation the test in the configure script fails because of api
> incompatibility but with a potentially misleading error message.
> 
> > This configure line works on CentOS 5.2.
> 
> By the way, what version of gd-devel is on your CentOS 5.2 machine?

I gave up on --with-cgi on the old box and used nut on my 
CentOS 5.2 box with cgi support to monitor my second UPS 
via web page.  Works nicely.  I don't need cgi support on 
more than one server.  I ran into something about needing 
to explicitly indicate where libgd is for older versions, 
probably what I ran into.

My gd-devel on my older CentOS 4.3 upgraded to 4.7 box is:
     gd-devel-2.0.28-5.4E.el4_6.1

And on the newer CentOS 5.2 box it is:
     gd-devel-2.0.33-9.4.el5_1.1

Oh, a huge hint to people trying to get NUT to work on 
CentOS is to use both init scripts and only run upsmon 
on a slave box.

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to