Well, I want to have a program make a graph from the data that it has, so I looked up how to do that in Perl. The GD::Graph module came up. The problem is, that I tried installing GD previously and it did not work. I have tried every trick I know of (yes, I read the README, but if anyone else understands it more than myself, feel free to look through it for potential problems), but the module still does not install. I have tried getting the latest versions of libgd, libpng, and zlib, as well as using the CPAN module, and putting gd.h in the right place.
I am running Ubuntu 9.10 on an Eee PC 901.

GD.xs:710: error: ‘gdIOCtx’ undeclared (first use in this function)
GD.xs:710: error: (Each undeclared identifier is reported only once
GD.xs:710: error: for each function it appears in.)
GD.xs: In function ‘XS_GD__Image_newFromGifData’:
GD.xs:865: error: ‘gdIOCtx’ undeclared (first use in this function)
GD.xs:865: error: ‘ctx’ undeclared (first use in this function)
GD.xs: In function ‘XS_GD__Image_stringFTCircle’:
GD.xs:2262: warning: assignment makes pointer from integer without a cast
GD.xs: In function ‘XS_GD__Font_DESTROY’:
GD.xs:2437: warning: comparison between pointer and integer
GD.xs:2441: warning: comparison between pointer and integer
GD.xs: In function ‘XS_GD__Font_Small’:
GD.xs:2453: warning: assignment makes pointer from integer without a cast
GD.xs: In function ‘XS_GD__Font_Large’:
GD.xs:2464: warning: assignment makes pointer from integer without a cast

These are the types of errors I get when I try to execute the commands make and make install. Any help that can be provided would be appreciated.

Edited 7 Years Ago by orwell84: code tags

On Ubuntu, you should be able to

sudo apt-get install cpan

And then

cpan ModuleName

And this should configure everything automatically.

This article has been dead for over six months. Start a new discussion instead.