1819504 Members
3060 Online
109603 Solutions
New Discussion юеВ

Install GD problem

 
haeman
Frequent Advisor

Install GD problem

I want to install the module GD to the debian server , I download GD-2.16.tar.gz and tried to install it , when install it , it pop the messages

Note (probably harmless): No library found for -lgd
Writing Makefile for GD


then I tried to download gd-2.0.35.tar.gz and tried to install it (./configure '--with-gd' '--with-png-dir=/usr' '--with-jpeg-di=/usr' '--with-freetype-dir=/usr' '--with-zlib-dir=/usr' ) , it is no error , then I use the command "make" to install it , it pop the below message , can advise what is wrong ? is there any step incorrect ?

thx
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: Install GD problem

>>> Note (probably harmless): No library found for -lgd

Okay...

>>> Writing Makefile for GD
Good!

>>> then I use the command "make" to install it

After the make, you should run "make install", what do you get?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
haeman
Frequent Advisor

Re: Install GD problem

After run make install , the error is as below , can advise what is wrong ?

GD.c:3775: error: syntax error before "RETVAL"
GD.xs:2205: error: `RETVAL' undeclared (first use in this function)
GD.c: In function `XS_GD__Font_nchars':
GD.c:3800: error: syntax error before "font"
GD.c:3806: error: `font' undeclared (first use in this function)
GD.c:3806: error: called object is not a function
GD.c: In function `XS_GD__Font_offset':
GD.c:3827: error: syntax error before "font"
GD.c:3833: error: `font' undeclared (first use in this function)
GD.c:3833: error: called object is not a function
GD.c: In function `XS_GD__Font_width':
GD.c:3854: error: syntax error before "font"
GD.c:3860: error: `font' undeclared (first use in this function)
GD.c:3860: error: called object is not a function
GD.c: In function `XS_GD__Font_height':
GD.c:3881: error: syntax error before "font"
GD.c:3887: error: `font' undeclared (first use in this function)
GD.c:3887: error: called object is not a function
make: *** [GD.o] Error 1

haeman
Frequent Advisor

Re: Install GD problem

thx reply ,

the below is the message when run "make" to install gd-2.0.35 , can advise what is wrong ?

make[2]: Entering directory `/usr/local/gd-2.0.35'
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -L/usr/local/lib -o gdpartto
png gdparttopng.o ./libgd.la -lm
gcc -g -O2 -o .libs/gdparttopng gdparttopng.o -L/usr/local/lib ./.libs/libgd.so
-lm -Wl,--rpath -Wl,/usr/local/lib
gdparttopng.o(.text+0x106): In function `main':
/usr/local/gd-2.0.35/gdparttopng.c:42: undefined reference to `gdImageCreateFrom
Gd2Part'
collect2: ld returned 1 exit status
make[2]: *** [gdparttopng] Error 1
make[2]: Leaving directory `/usr/local/gd-2.0.35'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/gd-2.0.35'
haeman
Frequent Advisor

Re: Install GD problem

thx reply ,

what I want is to have a gallery tools using PHP , do I need to install php-gd ? if yes , where can I have this source ? ( I would like to compile it myself ) thx