Installing GD

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Not very strong on unix or perl, but trying...

I'm trying to install GD for working with images.

Server is running Ubuntu 5.04 linux
Have Perl 5.8.4 installed
Have libgd 2.0.33 installed

Can do "make Makefile.PL" no problem.  Tell it I want to do jpeg and
gif images

When I do "make" I get a huge stream of errors

Starting with:
In file included from GD.xs:5:
/usr/lib/perl/5.8/CORE/perl.h:380:30: sys/types.h: No such file or
/usr/lib/perl/5.8/CORE/perl.h:411:19: ctype.h: No such file or
/usr/lib/perl/5.8/CORE/perl.h:423:23: locale.h: No such file or
/usr/lib/perl/5.8/CORE/perl.h:440:20: setjmp.h: No such file or
/usr/lib/perl/5.8/CORE/perl.h:446:26: sys/param.h: No such file or

And, it goes on from there.  No idea what to do from here.  Any help?

Re: Installing GD

Quoted text here. Click to load it

Those files that can't be found should all be under /usr/include (or
wherever it is that your compiler's header files are located).

Can you compile this simple C script:

#include <stdio.h>
#include <sys/types.h>

int main(void) {
    return 0;

If it compiles (and it won't if the compiler can't find sys/types.h) then we
have to wonder why the compiler can find sys/types.h in one instance and not
the other.

If it doesn't compile then I guess we have to wonder why the compiler can't
find sys/types.h in both instances :-) (Also provide a copy'n'paste of the
error messages.)

Also what do you get from the following commands:
which gcc
which cc
perl -V:cc

What does 'make' output *before* the errors start ?


Site Timeline