Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-04-2007, 08:33 AM   #1
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
Assistance installing GD

Hi folks,

I'm trying to get GD installed on Fedora Core 5. I've successfully ran the following:

yum install gd-devel
yum install php-gd

They went off without a hitch, and I've restarted apache. However runnnig bugzilla's checksetup, I get the following:

Checking perl modules ...
Checking for AppConfig (v1.52) ok: found v1.63
Checking for CGI (v2.93) ok: found v3.15
Checking for Data:umper (any) ok: found v2.121_08
Checking for Date::Format (v2.21) ok: found v2.22
Checking for DBI (v1.38) ok: found v1.50
Checking for File::Spec (v0.84) ok: found v3.12
Checking for File::Temp (any) ok: found v0.16
Checking for Template (v2.10) ok: found v2.15
Checking for Text::Wrap (v2001.0131) ok: found v2005.082401
Checking for Mail::Mailer (v1.67) ok: found v1.74
Checking for MIME::Base64 (v3.01) ok: found v3.07
Checking for MIME::Parser (v5.406) ok: found v5.420
Checking for Storable (any) ok: found v2.15

The following Perl modules are optional:
Checking for GD (v1.20) not found
Checking for Template::Plugin::GD::Image (any) not found
Checking for Chart::Base (v1.0) not found
Checking for XML::Twig (any) ok: found v3.23
Checking for GD::Graph (any) not found
Checking for GD::Text::Align (any) not found
Checking for PatchReader (v0.9.4) not found
Checking for Image::Magick (any) not found
Checking for HTML::Parser (v3.40) ok: found v3.50
Checking for HTML::Scrubber (any) not found
So I've tried installing the perl modules from CPAN, and I get this:


NOTICE: This module requires libgd 2.0.28 or higher.

If you are using Math::Trig 1.01 or lower, it has a bug that
causes a "prerequisite not found" warning to be issued. You may
safely ignore this warning.

Type perl Makefile.PL -h for command-line option summary

Configuring for libgd version 2.0.33.
Checking for stray libgd header files...

** WARNING: found gd.h header file in /usr/include/gd.h, but it is expected at /
usr/include/gd.h. This may cause compile errors! **
** Possible problems found **

GD library used from: /usr
Checking if your kit is complete...
Looks good
Writing Makefile for GD
/usr/bin/perl GD/ GD/
Extracting (with variable substitutions)
cp GD/ blib/lib/GD/
cp blib/lib/
cp GD/ blib/lib/GD/
cp blib/lib/
AutoSplitting blib/lib/ (blib/lib/auto/GD)
cp GD/ blib/lib/GD/
cp GD/ blib/lib/GD/
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.
8/ExtUtils/typemap -typemap typemap GD.xs > GD.xsc && mv GD.xsc GD.c
gcc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wd
eclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFS
ET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexce
ptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=gener
ic -fasynchronous-unwind-tables -DVERSION=\"2.35\" -DXS_VERSION=\"2.35\" -fPIC
"-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" -DHAVE_JPEG -DHAVE_FT -D
GD.xs: In function ‚?~constant‚?T:
GD.xs:335: warning: label ‚?~not_there‚?T defined but not used
GD.c: In function ‚?~XS_GD__Image__newFromGif‚?T:
GD.xs:850: warning: unused variable ‚?~truecolor‚?T
GD.c: In function ‚?~XS_GD__Image_newFromGifData‚?T:
GD.xs:870: warning: unused variable ‚?~truecolor‚?T
GD.c: In function ‚?~XS_GD__Image_colorClosestAlpha‚?T:
GD.c:3097: warning: unused variable ‚?~a‚?T
GD.xs: In function ‚?~XS_GD__Image_stringFT‚?T:
GD.xs:2185: warning: suggest parentheses around assignment used as truth value
GD.xs:2189: warning: suggest parentheses around assignment used as truth value
GD.xs:2201: warning: suggest parentheses around assignment used as truth value
GD.xs:2209: warning: suggest parentheses around assignment used as truth value
GD.c: In function ‚?~XS_GD__Image_useFontConfig‚?T:
GD.xs:2291: warning: unused variable ‚?~errormsg‚?T
GD.c: At top level:
GD.xs:60: warning: ‚?~not_here‚?T defined but not used
Running Mkbootstrap for GD ()
chmod 644
rm -f blib/arch/auto/GD/
gcc -shared -L/usr/local/lib GD.o -o blib/arch/auto/GD/ \
-L/usr/lib -L/usr/lib -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz
-lm -lgd \

/usr/bin/ld: cannot find -lfontconfig
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/GD/] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
And I'm not really sure how to proceed - any of the modules I try to install get me a lot of those odd ascii characters. Any advice would really be appreciated. Thanks!

Last edited by Seventh; 01-04-2007 at 08:40 AM.
Old 01-04-2007, 08:44 AM   #2
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Original Poster
Rep: Reputation: 30
I got it.

Turns out it needed two libraries from yum:

yum install lfontconfig
yum install lfontconfig-devel

/me dances with joy


apache, gd, phpgd

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
Need assistance installing TuxGuitar bottled leaf Linux - Desktop 12 12-30-2006 07:06 PM
Need assistance with installing application nepenthean Linux - Newbie 8 11-21-2005 03:47 PM
Assistance installing GNOME 2.10 swampdog2002 Linux - Software 1 07-25-2005 09:12 AM
Need assistance installing MS Sidewinder Force Feedback Pro in Debian/KDE cast55 Linux - Hardware 1 12-03-2004 10:34 AM
To all Mandrake8.2 users who need assistance on installing NVIDIA drivers neo77777 Linux - Distributions 0 07-21-2002 07:23 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:36 PM.

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