Schrift
[thread]5580[/thread]

libgd installation SuSe: Fehler beim Installieren von libgd

Leser: 2


<< |< 1 2 >| >> 12 Einträge, 2 Seiten
Gast Gast
 2006-11-28 14:04
#48132 #48132
Hi all,

ich bin kein Linux-experte, daher mal meine Frage:
Ich müsste bei mir das libGD Package installieren, aber bei der Installation tritt folgender Fehler auf... was bedeutet das?? Oder besser gefragt, weiss jemand, wie ich diesen Fehler beheben bzw. beseitigen kann?
Vielen Dank im Voraus,

Max, der Linux-Noobie

------------------
Configuring for libgd version 2.0.22.
Checking for stray libgd header files...


** WARNING: found gd.h header file in /usr/include/gd.h, but it is expected at /usr/include/gd.h. This may cause compile errors! **
** Possible problems found **


GD library used from: /usr

Please choose the features that match how libgd was built:
Build JPEG support? [y]
Build PNG support? [y]
Build FreeType support? [y]
Build GIF support? [y]
Build support for animated GIFs? [y]
Build XPM support? [y]
Checking if your kit is complete...
Looks good
Writing Makefile for GD
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" 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/lib/perl5/5.8.3/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.3/ExtUtils/typemap -typemap typemap GD.xs > GD.xsc && mv GD.xsc GD.c
cc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -Wall -pipe -DVERSION=\"2.35\" -DXS_VERSION=\"2.35\" -fPIC "-I/usr/lib/perl5/5.8.3/i586-linux-thread-multi/CORE" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_ANIMGIF GD.c
GD.xs: In function `constant':
GD.xs:335: warning: label `not_there' defined but not used
GD.xs: In function `XS_GD__Image__newFromGif':
GD.xs:855: warning: implicit declaration of function `gdImageCreateFromGif'
GD.xs:855: warning: assignment makes pointer from integer without a cast
GD.xs:850: warning: unused variable `truecolor'
GD.xs: In function `XS_GD__Image_newFromGifData':
GD.xs:877: warning: implicit declaration of function `gdImageCreateFromGifCtx'
GD.xs:870: warning: unused variable `truecolor'
GD.xs: In function `XS_GD__Image_gifanimbegin':
GD.xs:990: warning: implicit declaration of function `gdImageGifAnimBeginPtr'
GD.xs: In function `XS_GD__Image_gifanimadd':
GD.xs:1015: warning: implicit declaration of function `gdImageGifAnimAddPtr'
GD.xs: In function `XS_GD__Image_gifanimend':
GD.xs:1034: warning: implicit declaration of function `gdImageGifAnimEndPtr'
GD.xs: In function `XS_GD__Image_gif':
GD.xs:1079: warning: implicit declaration of function `gdImageGifPtr'
GD.c: In function `XS_GD__Image_copyRotated':
GD.c:2216: warning: unused variable `dstX'
GD.c:2217: warning: unused variable `dstY'
GD.c:2218: warning: unused variable `srcX'
GD.c:2219: warning: unused variable `srcY'
GD.c:2220: warning: unused variable `srcW'
GD.c:2221: warning: unused variable `srcH'
GD.c:2222: warning: unused variable `angle'
GD.xs: In function `XS_GD__Image_unclosedPolygon':
GD.xs:1547: warning: unused variable `sp'
GD.xs:1548: warning: unused variable `length'
GD.xs:1548: warning: unused variable `count'
GD.xs:1549: warning: unused variable `x'
GD.xs:1549: warning: unused variable `y'
GD.xs:1549: warning: unused variable `i'
GD.xs:1550: warning: unused variable `polyptr'
GD.c:2453: warning: unused variable `poly'
GD.c:2454: warning: unused variable `color'
GD.c: In function `XS_GD__Image_colorClosestAlpha':
GD.c:3028: warning: unused variable `a'
GD.xs: In function `XS_GD__Image_stringFT':
GD.xs:2185: warning: suggest parentheses around assignment used as truth value
GD.xs:2189: warning: suggest parentheses around assignment used as truth value
GD.xs:2156: warning: unused variable `a'
GD.xs:2161: warning: unused variable `hdpi'
GD.xs:2162: warning: unused variable `vdpi'
GD.c: In function `XS_GD__Image_stringFTCircle':
GD.c:3809: warning: unused variable `cx'
GD.c:3810: warning: unused variable `cy'
GD.c:3811: warning: unused variable `radius'
GD.c:3812: warning: unused variable `textRadius'
GD.c:3813: warning: unused variable `fillPortion'
GD.c:3814: warning: unused variable `fontname'
GD.c:3815: warning: unused variable `points'
GD.c:3816: warning: unused variable `top'
GD.c:3817: warning: unused variable `bottom'
GD.c:3818: warning: unused variable `fgcolor'
GD.xs:2252: warning: unused variable `err'
GD.c: In function `XS_GD__Image_useFontConfig':
GD.c:3874: warning: unused variable `flag'
GD.c: At top level:
GD.xs:60: warning: `not_here' defined but not used
Running Mkbootstrap for GD ()
chmod 644 GD.bs
rm -f blib/arch/auto/GD/GD.so
LD_RUN_PATH="/usr/X11R6/lib:/usr/lib" cc -shared GD.o -o blib/arch/auto/GD/GD.so -L/usr/X11R6/lib -L/usr/lib -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lm -lgd
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: cannot find -lpng12
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/GD/GD.so] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
nepos
 2006-11-28 14:47
#48133 #48133
User since
2005-08-17
1420 Artikel
BenutzerIn
[Homepage] [default_avatar]
Gibt es denn das libgd-perl-Paket nicht schon fertig fuer SuSE?
Wenn ja, dann nimm das her.

Das Warning sieht auch komisch aus irgendwie...
Hast du denn libgd2-dev oder wie das unter SuSE auch immer heißt installiert?\n\n

<!--EDIT|nepos|1164718101-->
ich
 2006-11-28 15:00
#48134 #48134
User since
2003-09-19
120 Artikel
BenutzerIn
[Homepage] [default_avatar]
Hallo

Quote
cannot find -lpng12


du musst mal kucken ob du das packet

libpng-devel
und
gd-devel

installiert hast.


gruss
jan
If you tell the truth you don't have to remember anything.
-- Mark Twain
LiNoobie Max
 2006-11-28 16:06
#48135 #48135
User since
2006-11-28
2 Artikel
BenutzerIn
[default_avatar]
Danke erstmal für die schnellen Antworten..
Nein, kenne kein komplettpaket
Und Jan, war ein goldener Tipp...

Allerdings läuft nun der Test nicht durch.. Wisst Ihr zu dem Fehler noch was ??


-----------

CPAN.pm: Going to build L/LD/LDS/GD-2.35.tar.gz

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

Configuring for libgd version 2.0.22.
Checking for stray libgd header files...

** WARNING: found gd.h header file in /usr/include/gd.h, but it is expected at /usr/include/gd.h. This may cause compile errors! **
** Possible problems found **

GD library used from: /usr

Please choose the features that match how libgd was built:
Build JPEG support? [y]
Build PNG support? [y]
Build FreeType support? [y]
Build GIF support? [y]
Build support for animated GIFs? [y]
Build XPM support? [y]
Checking if your kit is complete...
Looks good
Writing Makefile for GD
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" 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/lib/perl5/5.8.3/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.3/ExtUtils/typemap -typemap typemap GD.xs > GD.xsc && mv GD.xsc GD.c
cc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -Wall -pipe -DVERSION=\"2.35\" -DXS_VERSION=\"2.35\" -fPIC "-I/usr/lib/perl5/5.8.3/i586-linux-thread-multi/CORE" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_ANIMGIF GD.c
GD.xs: In function `constant':
GD.xs:335: warning: label `not_there' defined but not used
GD.xs: In function `XS_GD__Image__newFromGif':
GD.xs:855: warning: implicit declaration of function `gdImageCreateFromGif'
GD.xs:855: warning: assignment makes pointer from integer without a cast
GD.xs:850: warning: unused variable `truecolor'
GD.xs: In function `XS_GD__Image_newFromGifData':
GD.xs:877: warning: implicit declaration of function `gdImageCreateFromGifCtx'
GD.xs:870: warning: unused variable `truecolor'
GD.xs: In function `XS_GD__Image_gifanimbegin':
GD.xs:990: warning: implicit declaration of function `gdImageGifAnimBeginPtr'
GD.xs: In function `XS_GD__Image_gifanimadd':
GD.xs:1015: warning: implicit declaration of function `gdImageGifAnimAddPtr'
GD.xs: In function `XS_GD__Image_gifanimend':
GD.xs:1034: warning: implicit declaration of function `gdImageGifAnimEndPtr'
GD.xs: In function `XS_GD__Image_gif':
GD.xs:1079: warning: implicit declaration of function `gdImageGifPtr'
GD.c: In function `XS_GD__Image_copyRotated':
GD.c:2216: warning: unused variable `dstX'
GD.c:2217: warning: unused variable `dstY'
GD.c:2218: warning: unused variable `srcX'
GD.c:2219: warning: unused variable `srcY'
GD.c:2220: warning: unused variable `srcW'
GD.c:2221: warning: unused variable `srcH'
GD.c:2222: warning: unused variable `angle'
GD.xs: In function `XS_GD__Image_unclosedPolygon':
GD.xs:1547: warning: unused variable `sp'
GD.xs:1548: warning: unused variable `length'
GD.xs:1548: warning: unused variable `count'
GD.xs:1549: warning: unused variable `x'
GD.xs:1549: warning: unused variable `y'
GD.xs:1549: warning: unused variable `i'
GD.xs:1550: warning: unused variable `polyptr'
GD.c:2453: warning: unused variable `poly'
GD.c:2454: warning: unused variable `color'
GD.c: In function `XS_GD__Image_colorClosestAlpha':
GD.c:3028: warning: unused variable `a'
GD.xs: In function `XS_GD__Image_stringFT':
GD.xs:2185: warning: suggest parentheses around assignment used as truth value
GD.xs:2189: warning: suggest parentheses around assignment used as truth value
GD.xs:2156: warning: unused variable `a'
GD.xs:2161: warning: unused variable `hdpi'
GD.xs:2162: warning: unused variable `vdpi'
GD.c: In function `XS_GD__Image_stringFTCircle':
GD.c:3809: warning: unused variable `cx'
GD.c:3810: warning: unused variable `cy'
GD.c:3811: warning: unused variable `radius'
GD.c:3812: warning: unused variable `textRadius'
GD.c:3813: warning: unused variable `fillPortion'
GD.c:3814: warning: unused variable `fontname'
GD.c:3815: warning: unused variable `points'
GD.c:3816: warning: unused variable `top'
GD.c:3817: warning: unused variable `bottom'
GD.c:3818: warning: unused variable `fgcolor'
GD.xs:2252: warning: unused variable `err'
GD.c: In function `XS_GD__Image_useFontConfig':
GD.c:3874: warning: unused variable `flag'
GD.c: At top level:
GD.xs:60: warning: `not_here' defined but not used
Running Mkbootstrap for GD ()
chmod 644 GD.bs
rm -f blib/arch/auto/GD/GD.so
LD_RUN_PATH="/usr/X11R6/lib:/usr/lib" cc -shared GD.o -o blib/arch/auto/GD/GD.so -L/usr/X11R6/lib -L/usr/lib -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lm -lgd
chmod 755 blib/arch/auto/GD/GD.so
cp GD.bs blib/arch/auto/GD/GD.bs
chmod 644 blib/arch/auto/GD/GD.bs
cp bdf_scripts/bdf2gdfont.pl blib/script/bdf2gdfont.pl
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/bdf2gdfont.pl
Manifying blib/man1/bdf2gdfont.pl.1
Manifying blib/man3/GD::Polyline.3pm
Manifying blib/man3/GD::Image.3pm
Manifying blib/man3/GD::Simple.3pm
Manifying blib/man3/GD.3pm
Manifying blib/man3/GD::Polygon.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/GD..........Can't load './blib/arch/auto/GD/GD.so' for module GD: ./blib/arch/auto/GD/GD.so: undefined symbol: gdImageGifAnimAddPtr at /usr/lib/perl5/5.8.3/i586-linux-thread-multi/DynaLoader.pm line 229.
at t/GD.t line 14
Compilation failed in require at t/GD.t line 14.

BEGIN failed--compilation aborted at t/GD.t line 14.
t/GD..........dubious
Test returned status 255 (wstat 65280, 0xff00)
Scalar found where operator expected at (eval 153) line 1, near "'int' $__val"
(Missing operator before $__val?)
DIED. FAILED tests 1-12
Failed 12/12 tests, 0.00% okay
t/Polyline....Can't load '/root/.cpan/build/GD-2.35/blib/arch/auto/GD/GD.so' for module GD: /root/.cpan/build/GD-2.35/blib/arch/auto/GD/GD.so: undefined symbol: gdImageGifAnimAddPtr at /usr/lib/perl5/5.8.3/i586-linux-thread-multi/DynaLoader.pm line 229.
at /root/.cpan/build/GD-2.35/blib/lib/GD/Polyline.pm line 45
Compilation failed in require at /root/.cpan/build/GD-2.35/blib/lib/GD/Polyline.pm line 45.
BEGIN failed--compilation aborted at /root/.cpan/build/GD-2.35/blib/lib/GD/Polyline.pm line 45.
Compilation failed in require at t/Polyline.t line 10.
BEGIN failed--compilation aborted at t/Polyline.t line 10.
t/Polyline....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/GD.t 255 65280 12 23 191.67% 1-12
t/Polyline.t 255 65280 1 2 200.00% 1
Failed 2/2 test scripts, 0.00% okay. 13/13 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
bloonix
 2006-11-28 17:03
#48136 #48136
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
hast du denn auch das devel paket installiert?

libgd2-dev oder libgd2-devel
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.
LiNoobie Max
 2006-11-28 19:24
#48137 #48137
User since
2006-11-28
2 Artikel
BenutzerIn
[default_avatar]
Braicht man das auch noch? Ich dachte, das gd-dev Paket enspricht dem in SuSE? Gibt es denn das dann auch für SuSE (nicht gesehen..) oder muss man dann die ganzen Dependencies auch manuell installieren??

Grüße und Danke schonmal
MisterL
 2006-11-28 23:57
#48138 #48138
User since
2006-07-05
334 Artikel
BenutzerIn
[default_avatar]
Welches Suse kommt denn da zum Einsatz ?
Suse 9.0 ist nicht nur optisch etwas anders als 9.3 oder SLES
Was soll überhaupt installiert werden ?
Und welche Perlversion ist installiert ?
Die manuelle Installation mal probiert: http://faq.perl-community.de/bin....inModul ?
“Perl is the only language that looks the same before and after RSA encryption.”
MisterL
 2006-11-29 01:14
#48139 #48139
User since
2006-07-05
334 Artikel
BenutzerIn
[default_avatar]
Nachts, wenn die Perlprogrammierer mit Pizza und Perlbüchern bewaffnet auf Problemlösungssuche sind:
Suse 9.3 , Perl Version 5.8.6
Installiert wurde das Paket glibc-devel-2.3.4-23.3.i686.rpm von ftp://ftp.suse.com/pub/suse/i386/9.3/suse/i686/

Auf jeden Fall gab es keine Fehlermeldungen mehr ausser dieser:
"Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgd
Writing Makefile for GD"

Leider scheint das Testbeispiel von CPAN:gd damit nicht zu funktionieren... "Can't locate GD.pm in @INC" usw

Schade eigentlich :-(
“Perl is the only language that looks the same before and after RSA encryption.”
renee
 2006-11-29 09:09
#48140 #48140
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Dass ein Makefile geschrieben wurde heißt noch nicht, dass das Modul installiert wurde...
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
Superfrank
 2006-12-18 20:16
#48141 #48141
User since
2006-09-05
164 Artikel
BenutzerIn
[default_avatar]
das Problem hatte ich auch schon mal und ich habe dann eine neue Version von freetype und gdlib installiert und die alte gd.h stumpf umbenannt, damit sie nicht mehr gefunden wird (steht auch aus Tip in der Readme ;-) )

Zum Mitgeben von anderen Kompilieroptionen kannst du anstatt

Code: (dl )
install GD


auch erstmal

Code: (dl )
look GD


machen, und die Optionen benutzen, die mit

Code: (dl )
perl Makefile.PL -h


angezeigt werden um nochmal die richtigen Pfade mitzuteilen.

Grüsse

Frank
<< |< 1 2 >| >> 12 Einträge, 2 Seiten



View all threads created 2006-11-28 14:04.