Check the archives for my fairly recent posts on gd and GD.pm. To summarize, the current version of GD.pm (gettable and installable autamatically via cpan) is compatible only with gd version 2.0x and above. Unfortunately, gd version 2.0x is beta. The stable version is gd version 1.8.4. So, check what version of gd you installed.

The version of GD.pm required with the latest stable gd is 1.41 available on Lincoln Stein's website. Assuming you have gd 1.8.4, download GD.pm 1.41, follow the directions, install, and everything should go just fine.

Hth.

Puneet.


On Sunday, October 27, 2002, at 02:08 PM, Brigham Mecham wrote:

I am trying to install gd.pm. I have successfully installed gd with jpeg and png support as outlined in the article at stepwise.com. I then tried to use CPAN to install gd.pm, however it complained that about an error in the make step. So, I tried to do it manually. First I went to the directory and did the following:

bhmecham% perl Makefile.pl
This command complained about an error in the file regarding an email address that was improperly typed in the file. So I fixed it and again typed perl Makfile.pl. This time it worked fine. However when I type make I get the following.

bhmecham% make
cc -c -I/usr/local/include -I/usr/local/include/gd -g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -Os -DVERSION=\"2.02\" -DXS_VERSION=\"2.02\" -I/System/Library/Perl/darwin/CORE -DHAVE_JPEG GD.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
GD.xs: In function `gd_cloneDim':
GD.xs:365: structure has no member named `alpha'
GD.xs:365: structure has no member named `alpha'
GD.xs:371: structure has no member named `thick'
GD.xs:371: structure has no member named `thick'
GD.xs: In function `XS_GD__Image_copyRotate90':
GD.xs:933: invalid lvalue in assignment
GD.xs:933: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate180':
GD.xs:954: invalid lvalue in assignment
GD.xs:954: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate270':
GD.xs:975: invalid lvalue in assignment
GD.xs:975: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipHorizontal':
GD.xs:996: invalid lvalue in assignment
GD.xs:996: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipVertical':
GD.xs:1017: invalid lvalue in assignment
GD.xs:1017: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyTranspose':
GD.xs:1038: invalid lvalue in assignment
GD.xs:1038: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyReverseTranspose':
GD.xs:1059: invalid lvalue in assignment
GD.xs:1059: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_rotate180':
GD.xs:1079: invalid lvalue in assignment
GD.xs:1079: invalid lvalue in assignment
GD.xs:1080: invalid lvalue in assignment
GD.xs:1080: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipHorizontal':
GD.xs:1097: invalid lvalue in assignment
GD.xs:1097: invalid lvalue in assignment
GD.xs:1098: invalid lvalue in assignment
GD.xs:1098: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipVertical':
GD.xs:1115: invalid lvalue in assignment
GD.xs:1115: invalid lvalue in assignment
GD.xs:1116: invalid lvalue in assignment
GD.xs:1116: invalid lvalue in assignment
make: *** [GD.o] Error 1


I do not understand what this error means or how I can get around it or if I need to. Can anyone help?



Reply via email to