Re: [Apcupsd-users] Building apcupsd with --enable-cgi on CentOS 6.0 - configure: error...can't fin
Brought to you by:
adk0212
From: Adam K. <akr...@ro...> - 2011-10-05 11:51:18
|
On Wed, Oct 5, 2011 at 1:38 AM, David Roth <dav...@gm...> wrote: > I was running apcupsd.x86_64 ( 3.14.8-1.el5.rf) as a slave on CentOS 5 > x86_64. I've upgraded this server to CentOS 6.0. I've tried installing from > an RPM but multimon.cgi, upsfstats.cgi, upsimage.cgi and upsstats.cgi aren't > present. The multimon cgi tools live in a separate RPM, apcupsd-multimon. This is done so that casual users are not burdened with CGI scripts they will not use. > This is the kernel CentOS 6.0 is running: 2.6.32-71.29.1.el6.x86_64 #1 SMP > Mon Jun 27 19:49:27 BST 2011 x86_64 x86_64 x86_64 GNU/Linux > > So I downloaded and did a build on apcupsd-3.14.10.tar.gz. It would build > fine, but not with the cgi options I got from the manual. It complains about > libgd missing: > ./configure --enable-threads --enable-cgi --with-cgi-bin=/var/www/cgi-bin > checking for gdImagePng in -lgd... no > checking for gdImageGif in -lgd... no > checking for gdImagePng in -lgd... no > checking for gdImageGif in -lgd... no > configure: error: Your system lacks the GD library which is needed for > compiling the apcupsd CGI programs. Please install > libgd and re-run the ./configure script. > Alternatively you can disable the CGI support. > > I did save the yum output from this server on CentOS 5 and I don't see libgd > there. Does libgd exist for CentOS 6? Sure does ... "sudo yum install libgd-devel" --Adam |