Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: instalacja php5+gd
Forum PHP.pl > Forum > PHP > Object-oriented programming
rmn
no wlasnie..
czemu po wywolaniu takiej lini:
Kod
/php-5.0.0RC1# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-zlib-dir=/usr/local/lib --with-jpeg-dir=/usr/local/bin

moje gd nie ma obslugi jpegow...? Nie wywala zadnych warinngow przy buildowaniu ani instalowaniu wiec kompletnie nie wiem o co moze chodzic... pomocy!smile.gif

ps. potem oczywiscie wywoluje komendy
Kod
make

make install


probowalem skompilowac php z "zewnetrznym" gd 2.0.22 (gd instaluje sie bez problemu z obsluga jpgow i png - tego czego potrzebuje)
Kod
./configure --with-apxs2=/usr/local/apaache2/bin/apxs --with-mysql --with-gd=/usr/local
dziala ale potem przy
Kod
make
wywala mi:
Kod
....

ext/gd/gd.lo: In function `zif_imagecolormatch':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:896: undefined reference to `gdImageColorMatch'

ext/gd/gd.lo: In function `zif_imagerotate':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:1209: undefined reference to `gdImageRotate'

ext/gd/gd.lo: In function `zif_imagecreatefromstring':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:1438: undefined reference to `gdImageCreateFromGifCtx'

ext/gd/gd.lo: In function `zif_imagecreatefromgif':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:1595: undefined reference to `gdImageCreateFromGifCtx'

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:1595: undefined reference to `gdImageCreateFromGif'

ext/gd/gd.lo: In function `zif_imagexbm':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:1827: undefined reference to `gdImageXbmCtx'

ext/gd/gd.lo: In function `zif_imageline':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:2295: undefined reference to `gdImageAALine'

ext/gd/gd.lo: In function `zif_imageellipse':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:2434: undefined reference to `gdImageEllipse'

ext/gd/gd.lo: In function `_php_image_convert':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:3849: undefined reference to `gdIm

ageCreateFromGif'

ext/gd/gd.lo: In function `php_image_filter_negate':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:3990: undefined reference to `gdIm

ageNegate'

ext/gd/gd.lo: In function `php_image_filter_grayscale':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:4012: undefined reference to `gdIm

ageGrayScale'

ext/gd/gd.lo: In function `php_image_filter_brightness':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:4035: undefined reference to `gdIm

ageBrightness'

ext/gd/gd.lo: In function `php_image_filter_contrast':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:4058: undefined reference to `gdIm

ageBrightness'

ext/gd/gd.lo: In function `php_image_filter_colorize':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:4081: undefined reference to `gdIm

ageColor'

ext/gd/gd.lo: In function `php_image_filter_edgedetect':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:4103: undefined reference to `gdIm

ageEdgeDetectQuick'

ext/gd/gd.lo: In function `php_image_filter_emboss':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:4125: undefined reference to `gdIm

ageEmboss'

ext/gd/gd.lo: In function `php_image_filter_gaussian_blur':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:4147: undefined reference to `gdIm

ageGaussianBlur'

ext/gd/gd.lo: In function `php_image_filter_selective_blur':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:4169: undefined reference to `gdIm

ageSelectiveBlur'

ext/gd/gd.lo: In function `php_image_filter_mean_removal':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:4191: undefined reference to `gdIm

ageMeanRemoval'

ext/gd/gd.lo: In function `php_image_filter_smooth':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:4215: undefined reference to `gdIm

ageSmooth'

ext/gd/gd.lo: In function `zif_imageantialias':

/home/roman/download/php-5.0.0RC1/ext/gd/gd.c:4270: undefined reference to `gdIm

ageAntialias'

main/output.lo: In function `php_ob_init_named':

/home/roman/download/php-5.0.0RC1/main/output.c:421: undefined reference to `php

_ob_gzhandler_check'

collect2: ld returned 1 exit status

make: *** [sapi/cli/php] Error 1

debian:/home/roman/download/php-5.0.0RC1#


wiec tak: info dla Was:)
pow ielu godzinach.. argh! udalo mi sie dotrzec do roznych informacji i wreszcie gdzies trafilem na notke ze podobne rzeczy dzieja sie z php>4.31. To jest chyba bug (nie moge sprawdzic bo bug.php.net nie dziala) No w kazdym razie po skompilowaniu z taka konfiguracja:
Kod
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-jpeg-dir=/usr/local/jpeg6b --with-zlib-dir=/usr/local --with-png-dir=/usr/local/
php 4.3.1 dziala z obsluga jpegow
4.3.4 wywala bledy przy kompilacji a 5.0 rc1 dziala ale bez obslugi jpegow.. argh

do tego pamietajacie ze jpeg6b musi byc skopilowane w nastepujacy sposob
Kod
./configure --enable-shared

make test

make install-lib


pozdrawiam rmn
mkozak
Oprucz samego GD najpierw musisz skompilować biblioteki, których GD używa do obsługi poszczególnych formatów.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.