HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   installing Perl module GD - ran into problems (http://www.howtoforge.com/forums/showthread.php?t=6926)

Ovidiu 18th September 2006 09:05

installing Perl module GD - ran into problems
 
here is the output:

Quote:

Executing /usr/bin/perl Makefile.PL && make ..

NOTICE: This module requires libgd 2.0.28 or higher.

If you are using Math::Trig 1.01 or lower, it has a bug that
causes a "prerequisite not found" warning to be issued. You may
safely ignore this warning.

Type perl Makefile.PL -h for command-line option summary


Where is libgd installed? [/usr/lib] /usr/lib

Please choose the features that match how libgd was built:
Build JPEG support? [y] y
Build PNG support? [y] y
Build FreeType support? [y] y
Build GIF support? [y] y
Build support for animated GIFs? [y] y
Build XPM support? [y] y

If you experience compile problems, please check the @INC, @LIBPATH and @LIBS
arrays defined in Makefile.PL and manually adjust, if necessary.

Checking if your kit is complete...
Looks good
Writing Makefile for GD
/usr/bin/perl GD/Image.pm.PLS GD/Image.pm
Extracting Image.pm (with variable substitutions)
cp GD/Polyline.pm blib/lib/GD/Polyline.pm
cp qd.pl blib/lib/qd.pl
cp GD/Image.pm blib/lib/GD/Image.pm
cp GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
cp GD/Simple.pm blib/lib/GD/Simple.pm
cp GD/Polygon.pm blib/lib/GD/Polygon.pm
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap /usr/share/perl/5.8/ExtUtils/typemap -ty
pemap typemap GD.xs > GD.xsc && mv GD.xsc GD.c
cc -c -I/usr/include -I/usr/include/gd -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno
-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"2
.35\" -DXS_VERSION=\"2.35\" -fPIC "-I/usr/lib/perl/5.8/CORE" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAV
E_GIF -DHAVE_PNG -DHAVE_ANIMGIF GD.c
GD.xs: In function `newDynamicCtx':
GD.xs:444: error: structure has no member named `gd_free'
GD.xs: In function `gd_cloneDim':
GD.xs:464: error: structure has no member named `alpha'
GD.xs:464: error: structure has no member named `alpha'
GD.xs:470: error: structure has no member named `thick'
GD.xs:470: error: structure has no member named `thick'
GD.xs: In function `XS_GD__Image_newFromPngData':
GD.xs:640: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromJpegData':
GD.xs:696: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromWBMPData':
GD.xs:723: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image__newFromGif':
GD.xs:855: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Image_newFromGifData':
GD.xs:878: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_STORABLE_thaw':
GD.xs:922: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Image_copyRotate90':
GD.xs:1246: error: invalid lvalue in assignment
GD.xs:1246: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate180':
GD.xs:1267: error: invalid lvalue in assignment
GD.xs:1267: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate270':
GD.xs:1288: error: invalid lvalue in assignment
GD.xs:1288: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipHorizontal':
GD.xs:1309: error: invalid lvalue in assignment
GD.xs:1309: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipVertical':
GD.xs:1330: error: invalid lvalue in assignment
GD.xs:1330: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyTranspose':
GD.xs:1351: error: invalid lvalue in assignment
GD.xs:1351: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyReverseTranspose':
GD.xs:1372: error: invalid lvalue in assignment
GD.xs:1372: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_rotate180':
GD.xs:1392: error: invalid lvalue in assignment
GD.xs:1392: error: invalid lvalue in assignment
GD.xs:1393: error: invalid lvalue in assignment
GD.xs:1393: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipHorizontal':
GD.xs:1431: error: invalid lvalue in assignment
GD.xs:1431: error: invalid lvalue in assignment
GD.xs:1432: error: invalid lvalue in assignment
GD.xs:1432: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipVertical':
GD.xs:1449: error: invalid lvalue in assignment
GD.xs:1449: error: invalid lvalue in assignment
GD.xs:1450: error: invalid lvalue in assignment
GD.xs:1450: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_stringFT':
GD.xs:2163: error: `gdFTStringExtra' undeclared (first use in this function)
GD.xs:2163: error: (Each undeclared identifier is reported only once
GD.xs:2163: error: for each function it appears in.)
GD.xs:2163: error: syntax error before "strex"
GD.xs:2182: error: `strex' undeclared (first use in this function)
GD.xs:2186: error: `gdFTEX_LINESPACE' undeclared (first use in this function)
GD.xs:2190: error: `gdFTEX_CHARMAP' undeclared (first use in this function)
GD.xs:2192: error: `gdFTEX_Unicode' undeclared (first use in this function)
GD.xs:2194: error: `gdFTEX_Shift_JIS' undeclared (first use in this function)
GD.xs:2196: error: `gdFTEX_Big5' undeclared (first use in this function)
GD.xs:2217: 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:2438: warning: comparison between pointer and integer
GD.xs:2439: warning: comparison between pointer and integer
GD.xs:2440: 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
GD.xs: In function `XS_GD__Font_Giant':
GD.xs:2475: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Font_MediumBold':
GD.xs:2486: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Font_Tiny':
GD.xs:2497: warning: assignment makes pointer from integer without a cast
make: *** [GD.o] Error 1

I then found my mistake: I had libgd installed instead of libgd2 so when installing libgd2 php4-gd got removed???

Now I have no GD support for php? How can I fix this? Any ideas?
I just found out it was only libgd2-dev conflicting so I deinstalled that one and could install php4-gd still phpinfo does not show me the GD information???? PLEASE help ;-)

Ben 18th September 2006 09:13

Isn't there also a package php4-gd2 for gd2 support?

Ovidiu 18th September 2006 09:45

I cannot find one :-(

sjau 18th September 2006 09:47

Are you on debian or debian-like system?

Ovidiu 18th September 2006 09:49

oops, I am using debian 3.1

Ovidiu 19th September 2006 09:25

hi there, it seems a libgd-dev package was conflicting with php4-gd, I managed to reinstall php4-gd but still it shows no support for gd inside my phpinfo.

do I have to somehow enable it? or should installing suffice?

Ovidiu 19th September 2006 09:32

strange I had to go to /etc/php4/apache2/php.ini and uncomment this line:

Quote:

extension=gd.so
now it works...


All times are GMT +2. The time now is 12:27.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.