Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: Perl-GD mod...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 11 Topic 10979 of 11531
Post > Topic >>

Re: Perl-GD module installation

by msivasakthi@[EMAIL PROTECTED] (Sivasakthi) May 7, 2008 at 12:35 PM

--=-HcGuJH0FBeiKSdYivjDq
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

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
[root@[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 <msivasakthi@[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.
> 

--=-HcGuJH0FBeiKSdYivjDq--
 




 11 Posts in Topic:
Perl-GD module installation
msivasakthi@[EMAIL PROTEC  2008-04-23 15:16:09 
Re: Perl-GD module installation
rcoops@[EMAIL PROTECTED]   2008-04-23 12:45:05 
Re: Perl-GD module installation
peng.kyo@[EMAIL PROTECTED  2008-04-23 20:33:39 
Re: Perl-GD module installation
chas.owens@[EMAIL PROTECT  2008-04-23 11:42:56 
Re: Perl-GD module installation
msivasakthi@[EMAIL PROTEC  2008-05-07 12:35:09 
Re: Perl-GD module installation
rvtol+news@[EMAIL PROTECT  2008-05-07 12:20:01 
Re: Perl-GD module installation
rcoops@[EMAIL PROTECTED]   2008-05-07 09:31:42 
Re: Perl-GD module installation
msivasakthi@[EMAIL PROTEC  2008-05-07 14:15:04 
Re: Perl-GD module installation
rcoops@[EMAIL PROTECTED]   2008-05-07 11:04:41 
Re: Perl-GD module installation
msivasakthi@[EMAIL PROTEC  2008-05-07 16:15:54 
Re: Perl-GD module installation
rvtol+news@[EMAIL PROTECT  2008-05-07 16:08:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:58:26 CDT 2008.