LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Assistance installing GD (https://www.linuxquestions.org/questions/linux-server-73/assistance-installing-gd-516232/)

Seventh 01-04-2007 08:33 AM

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:

Quote:

Checking perl modules ...
Checking for AppConfig (v1.52) ok: found v1.63
Checking for CGI (v2.93) ok: found v3.15
Checking for Data::Dumper (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:

Quote:


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 **

Included Features: GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_G
IF GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33
GD library used from: /usr
Checking if your kit is complete...
Looks good
Writing Makefile for GD
/usr/bin/perl GD/Image.pm.PLS GD/Image.pm
Extracting Image.pm (with variable substitutions)
cp GD/Polyline.pm blib/lib/GD/Polyline.pm
cp qd.pl blib/lib/qd.pl
cp GD/Image.pm blib/lib/GD/Image.pm
cp GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
cp GD/Simple.pm blib/lib/GD/Simple.pm
cp GD/Polygon.pm blib/lib/GD/Polygon.pm
/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
HAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_ANIMGIF -DVERSION_33 -DHAVE_UNCLOSEDPOLY -
DHAVE_FONTCONFIG -DHAVE_FTCIRCLE GD.c
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 GD.bs
rm -f blib/arch/auto/GD/GD.so
gcc -shared -L/usr/local/lib GD.o -o blib/arch/auto/GD/GD.so \
-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/GD.so] 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!

Seventh 01-04-2007 08:44 AM

I got it. :)

Turns out it needed two libraries from yum:

yum install lfontconfig
yum install lfontconfig-devel

/me dances with joy


All times are GMT -5. The time now is 11:25 PM.