I would say this is the problem: */usr/bin/ld: cannot find -lfreetype* At least that is what the compiler says the problem is and I guess it knows better then I do. So time to install the freetype libs. ( http://www.freetype.org/)
On Wed, May 7, 2008 at 9:05 AM, sivasakthi <[EMAIL PROTECTED]> wrote: > I have installed the following rpms, > > gd-devel-2.0.28-4.4E.1 > gd-2.0.28-4.4E.1 > gdk-pixbuf-0.22.0-17.el4.3 > gdm-2.6.0.5-7.rhel4.12 > gdbm-1.8.0-24 > > after that tried to build GD module, during make it shows following, > > # make > /usr/bin/perl "-Iblib/arch" "-Iblib/lib" 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.5/ExtUtils/xsubpp > -typemap /usr/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap GD.xs > > GD.xsc && mv GD.xsc GD.c > gcc -c -I/usr/include -I/usr/include/gd -D_REENTRANT -D_GNU_SOURCE > -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g > -pipe -DVERSION=\"2.35\" -DXS_VERSION=\"2.35\" -fPIC > "-I/usr/lib/perl5/5.8.5/ia64-linux-thread-multi/CORE" -DHAVE_JPEG > -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_ANIMGIF GD.c > GD.xs: In function `XS_GD__Image_STORABLE_thaw': > GD.xs:923: warning: cast from pointer to integer of different size > GD.xs: In function `XS_GD__Image_gifanimbegin': > GD.xs:990: warning: cast to pointer from integer of different size > GD.xs: In function `XS_GD__Image_gifanimadd': > GD.xs:1015: warning: cast to pointer from integer of different size > GD.xs: In function `XS_GD__Image_gifanimend': > GD.xs:1034: warning: cast to pointer from integer of different size > 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/X11 -L/usr/X11R6/lib -L/usr/lib -lgd -lfreetype -ljpeg -lpng > -lz -lm -lX11 -lXpm > /usr/bin/ld: cannot find -lfreetype > collect2: ld returned 1 exit status > make: *** [blib/arch/auto/GD/GD.so] Error 1 > [EMAIL PROTECTED] GD-2.35]# make install > 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/X11 -L/usr/X11R6/lib -L/usr/lib -lgd -lfreetype -ljpeg -lpng > -lz -lm -lX11 -lXpm > /usr/bin/ld: cannot find -lfreetype > collect2: ld returned 1 exit status > make: *** [blib/arch/auto/GD/GD.so] Error 1 > > what is the problem ? > > > On Wed, 2008-04-23 at 11:42 -0400, Chas. Owens wrote: > > > On Wed, Apr 23, 2008 at 5:46 AM, sivasakthi <[EMAIL PROTECTED]> > wrote: > > > Hi all, > > > > > > I have tried to install the Perl-GD module from source code, it > throws > > > following error when i gave make, > > > > > > GD.xs:7:16: gd.h: No such file or directory > > snip > > > how can i eliminate the problem ? is any header file rpms missed? > > > > Yes, you are missing the header (aka devel) rpms. You can install > > them by saying > > > > sudo yum install gd-devel > > > > Any dependencies should be taken care of by yum. > > >