Problem installing GD module
am 04.04.2006 18:26:55 von Jim KeenanI have successfully installed the GD module on Darwin (10.3), but now
I'm encountering problems trying to install it on Linux Ubuntu 5.04.
When I call 'make', the output starts like this:
GD.xs:7:16: gd.h: No such file or directory
GD.xs:8:21: gdfontg.h: No such file or directory
GD.xs:9:21: gdfontl.h: No such file or directory
GD.xs:10:22: gdfontmb.h: No such file or directory
GD.xs:11:21: gdfonts.h: No such file or directory
GD.xs:12:21: gdfontt.h: No such file or directory
GD.xs:336: error: syntax error before "GD__Image"
GD.xs:336: warning: data definition has no type or storage class
GD.xs:337: error: syntax error before "GD__Font"
GD.xs:337: warning: data definition has no type or storage class
.... and ends like this:
GD.c:4378: error: `font' undeclared (first use in this function)
GD.c:4378: error: called object is not a function
{standard input}: Assembler messages:
{standard input}:366: Error: symbol `__u' is already defined
{standard input}:372: Error: symbol `__u' is already defined
{standard input}:378: Error: symbol `__u' is already defined
{standard input}:384: Error: symbol `__u' is already defined
{standard input}:390: Error: symbol `__u' is already defined
{standard input}:396: Error: symbol `__u' is already defined
{standard input}:402: Error: symbol `__u' is already defined
{standard input}:408: Error: symbol `__u' is already defined
{standard input}:414: Error: symbol `__u' is already defined
{standard input}:420: Error: symbol `__u' is already defined
{standard input}:426: Error: symbol `__u' is already defined
make: *** [GD.o] Error 1
Figuring that I might not have had the latest version of the underlying
libgd library, I upgraded with apt-get install libgd2-xpm. Then, when
that didn't solve the problem, I tried installing gd 2.0.33 from
source. When I tried to do so, I got error messages excerpted here:
>From ./configure:
** Configuration summary for gd 2.0.33:
Support for PNG library: no
Support for JPEG library: no
Support for Freetype 2.x library: no
Support for Fontconfig library: no
Support for Xpm library: no
Support for pthreads: yes
>From make install:
collect2: ld returned 1 exit status
make[1]: *** [gdparttopng] Error 1
make[1]: Leaving directory `/home/jimk/Downloads/gd-2.0.33'
make: *** [install-recursive] Error 1
On the one hand, Ubuntu's 'apt-get' is telling me that the missing
libraries are up-to-date. On the other hand, when I call 'locate' I
cannot locate header files such as 'gd.h' -- only shared object files.
So I'm having no luck either with the Perl GD module or with libgd
itself. Can anyone suggest where I am going astray? Thank you very
much.
Jim Keenan