Click here to get back home

Installing GD

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Installing GD sojourner9 11-08-2005
Posted by sojourner9 on November 8, 2005, 2:05 pm
Please log in for more thread options


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
directory
/usr/lib/perl/5.8/CORE/perl.h:411:19: ctype.h: No such file or
directory
/usr/lib/perl/5.8/CORE/perl.h:423:23: locale.h: No such file or
directory
/usr/lib/perl/5.8/CORE/perl.h:440:20: setjmp.h: No such file or
directory
/usr/lib/perl/5.8/CORE/perl.h:446:26: sys/param.h: No such file or
directory


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



Posted by Sisyphus on November 9, 2005, 12:24 pm
Please log in for more thread options



> 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
> directory
> /usr/lib/perl/5.8/CORE/perl.h:411:19: ctype.h: No such file or
> directory
> /usr/lib/perl/5.8/CORE/perl.h:423:23: locale.h: No such file or
> directory
> /usr/lib/perl/5.8/CORE/perl.h:440:20: setjmp.h: No such file or
> directory
> /usr/lib/perl/5.8/CORE/perl.h:446:26: sys/param.h: No such file or
> directory
>
>
> And, it goes on from there. No idea what to do from here. Any help?
>

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) {
printf("OK\n");
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 ?

Cheers,
Rob




Similar ThreadsPosted
Installing Tk November 13, 2005, 10:49 pm
[Q] Installing GD September 25, 2006, 6:38 pm
Error Installing XML::DOM October 15, 2004, 9:16 am
Trouble installing GD November 5, 2004, 10:51 am
installing modules? September 29, 2005, 1:52 pm
Need help installing via CPAN March 17, 2005, 3:33 pm
Newbie & Installing NET::FTP,CGI.PM, etc. July 7, 2005, 8:58 am
installing mod_perl? July 20, 2005, 9:05 pm
Installing modules August 5, 2005, 8:32 pm
Installing XML Parser May 25, 2006, 2:20 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap