PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : GD installieren



__dejan__
18.05.2006, 04:09
Hallo Leute!

Ich habe irgendwie schwierigkeiten die GD lib zu installieren bzw. mit den JPEG, XPM, FreeType Support. Installiere die ganze geschichte zu Fuß (was ich seit langen nicht mehr gemacht habe).

Configure Command:
'./configure' '--with-apxs2=/usr/bin/apxs2'
'--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'
'--with-pdo-mysql=/usr/local/mysql' '--with-pdo-sqlite' '--with-bcmath'
'--with-xsl' '--with-soap' '--enable-sockets' '--enable-ftp'
'--enable-memory-limit' '--with-curl' '--with-mcrypt' '--with-openssl'
'--with-zlib' '--with-bz2' '--enable-calendar' '--with-gd' '--with-jpeg-dir'
'--with-png-dir' '--with-xpm-dir' '--with-ttf' '--with-freetype-dir'
'--enable-gd-native-ttf' '--enable-sysvmsg' '--enable-sysvsem'
'--enable-sysvshm'
Bei der installation wird nichts mehr angemekert, weswegen ich auch davon ausgegangen bin das alles in Ordnung ist. Leider muss ich festellen, dass ich da falsch liege.


checking for GD support... yes
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... yes
checking for FreeType 1.x support... yes
checking for FreeType 2... yes
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
checking for XpmFreeXpmImage in -lXpm... yes
checking for FreeType 1 support... no - FreeType 2.x is to be used instead
GD Info:
Array
(
[GD Version] => bundled (2.0.28 compatible)
[FreeType Support] =>
[T1Lib Support] =>
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPG Support] =>
[PNG Support] => 1
[WBMP Support] => 1
[XPM Support] =>
[XBM Support] => 1
[JIS-mapped Japanese Font Support] =>
)
Nur wo und warum? Könnte es sein das ich erstmal php mit gd ohne jpeg und freetype support installiert habe und erst nachhinein den jpeg, freetype etc support installieren wollte. Den config.cache habe ich jedesmal gelöscht.

System: Ubuntu 5.10 (2.6.12-10-386)
Web-Server version: Apache/2.0.54 (Prefork)
PHP 5.1.4


libjpeg62
libjpeg62-dev
libgd2
libgd2-dev
libgd2-xpm
libgd2-xpm-dev
freetype2
libfreetype6
libfreetype6-dev

betrazivis
18.05.2006, 12:53
Versuch mal PHP5 mit


--with-jpeg \
--with-libjpeg \
--with-jpeg-dir \

zu kompilieren

Bei mir hat das geklappt

__dejan__
18.05.2006, 20:29
Fehlanzeige :( Ich komme auch irgendwie nicht dahinter...

meikel
19.05.2006, 19:22
Habe PHP 5.1.4 folgendermaßen compiliert:

./configure \
--prefix=/usr \
--with-apxs2=/usr/sbin/apxs2-prefork \
--bindir=/usr/bin \
--libdir=/usr/lib \
--with-config-file-path=/etc \
--enable-track-vars \
--enable-magic-quotes \
--enable-debug=no \
--with-mysql=/usr \
--enable-ftp \
--with-zlib \
--with-zlib-dir=/usr \
--enable-trans-sid \
--enable-sockets \
--enable-calendar \
--enable-wddx \
--enable-bcmath \
--enable-pcntl \
--with-openssl=/usr \
--enable-exif \
--with-mcrypt \
--with-mhash \
--with-gdbm \
--enable-dba \
--enable-memory-limit \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-gd \
--enable-gd-native-ttf \
--with-xpm-dir=/usr/X11R6 \
--with-ttf=/usr \
--with-freetype-dir=/usr \
--with-zip \
--enable-soap \
--with-libxml-dir=/usr \
--with-mime-magic \
--with-curl=/usr \
--enable-mbstring=all \
--enable-sqlite-utf8 \
--with-imap=/usr \
--with-imap-ssl=/usr;
Mit den Optionen hatte ich Probleme (Susi 9.1 is eben nicht der letzte Schrei):

--with-pdo-mysql=/usr \
--with-gettext=/usr \

__dejan__
20.05.2006, 05:48
Hallo meikel :)

Schön mal wieder von dir zu lesen.

Zu meiner Herausvorderung, es besteht immer noch :( Ehrlich gesagt, bin ich am
Ende mit meinem Latein. Ich hatte noch nie solche Probleme php bzw. GD zu
komplieren :!:

Konfigure sieht nun wie folgt aus:
'./configure' '--with-apxs2=/usr/bin/apxs2'
'--with-mysql=/usr/local/mysql'
'--with-mysqli=/usr/local/mysql/bin/mysql_config'
'--with-pdo-mysql=/usr/local/mysql'
'--with-pdo-sqlite'
'--enable-sqlite-utf8'
'--with-bcmath'
'--with-xsl'
'--with-soap'
'--enable-sockets'
'--enable-ftp'
'--enable-memory-limit'
'--disable-debug'
'--with-curl'
'--with-mcrypt'
'--with-openssl'
'--with-zlib'
'--with-bz2'
'--enable-calendar'
'--enable-exif'
'--with-gd'
'--with-jpeg-dir=/usr'
'--with-png-dir=/usr'
'--with-freetype-dir=/usr'
'--enable-gd-native-ttf'
'--with-xpm-dir=/usr/X11R6'
'--enable-sysvmsg'
'--enable-sysvsem'
'--enable-sysvshm'gd_info:
Array
(
[GD Version] => bundled (2.0.28 compatible)
[FreeType Support] =>
[T1Lib Support] =>
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPG Support] =>
[PNG Support] => 1
[WBMP Support] => 1
[XPM Support] =>
[XBM Support] => 1
[JIS-mapped Japanese Font Support] =>
) Vieleicht hat ja jemand irgendeine Ahnung, was hier die ganze Zeit
schiefläuft.

meikel
20.05.2006, 08:18
Original von __dejan__
Schön mal wieder von dir zu lesen.
Ich habe gesundheitliche Probleme und kann täglich nur max. 1-2 Std an der Blechkiste hocken.


Zu meiner Herausvorderung, es besteht immer noch
Wie es aussieht, werden die Headerfiles von libXPM und freetype2 nicht gefunden.
Eigentlich müßte configure da schon sterben.
Was mich etwas verwundert: Du compilierst mysql und mysqli? Da war doch mal was... <grübel>

btw: mit PDO hatte ich Probleme. Der Kram ließ sich zwar compilieren, aber der Apache wollte mit dem Ergebnis nix zu tun haben und starb sang und klanglos.

Figurehead
22.05.2006, 00:00
Handelt es sich bei deinem Rechner um einen 64bit System?, dann musst du dem configure ein '--with-lib=lib64' mitgeben, ansonsten werden die Bibliotheken im /usr/lib Verzeichnis gesucht und nicht im richtigen /usr/lib64 Verzeichnis!!!!

Mein configure für SuSe 9.3 sieht so aus:

./configure --prefix=/usr
--datadir=/usr/share/php5
--mandir=/usr/share/man
--libdir=/usr/lib64
--bindir=/usr/bin
--includedir=/usr/include
--with-exec-dir=/usr/lib64/php5/bin
--with-config-file-scan-dir=/etc/php5/conf.d
--with-libdir=lib64
--disable-debug
--disable-all
--enable-sigchild
--enable-memory-limit
--enable-safe-mode
--enable-magic-quotes
--enable-inline-optimization
--enable-libxml
--enable-session
--enable-xml
--enable-simplexml
--enable-spl
--with-pcre-regex
--enable-bcmath=shared
--enable-calendar=shared
--enable-ctype=shared
--enable-dba=shared
--enable-dbase=shared
--enable-dbx=shared
--enable-dio=shared
--enable-dom=shared
--enable-exif=shared
--enable-filepro=shared
--enable-ftp=shared
--enable-mbstring=shared
--enable-mbregex
--enable-pcntl=shared
--enable-posix=shared
--enable-shmop=shared
--enable-ucd-snmp-hack=shared
--enable-soap=shared
--enable-sockets=shared
--enable-sysvmsg=shared
--enable-sysvsem=shared
--enable-sysvshm=shared
--enable-tokenizer=shared
--enable-wddx=shared
--enable-yp=shared
--with-zlib=shared
--with-bz2=shared
--with-curl=shared
--with-gdbm=shared
--with-db4=shared
--with-cdb=shared
--with-inifile=shared
--with-flatfile=shared
--with-fam=shared
--with-gd=shared
--enable-gd-native-ttf
--enable-gd-jis-conv=shared
--with-xpm-dir=/usr/X11R6
--with-freetype-dir=yes
--with-png-fir=/usr
--with-ttf
--with-jpeg-dir=/usr
--with-zlib-dir=/usr
--with-gettext=shared
--with-gmp=shared
--with-iconv=shared
--with-imap=shared
--with-kerberos
--with-imap-ssl
--with-ldap=shared
--with-mcrypt=shared
--with-mhash=shared
--with-mysql=shared,/usr
--with-mysql-sock=/var/lib/mysql/mysql.sock
--with-ncurses=shared
--with-unixODBC=shared,/usr
--with-openssl=shared
--with-pgsql=shared
--with-mm=shared
--with-snmp=shared
--with-xmlrpc=shared
--with-sqlite=shared,/usr
--enable-sqlite-utf8
--with-xsl=shared
--enable-pdo=shared
--with-pdo-mysql=shared
--with-pdo-sqlite=shared
--with-pdo-pgsql=shared
--with-readline=shared
--with-mysqli=shared
--enable-embedded-mysqli=shared
--sysconfdir=/etc/php5/apache2
--with-config-file-path=/etc/php5/apache2
--disable-cgi
--disable-cli
--with-apxs2=/usr/sbin/apxs2
--without-pear

betrazivis
18.07.2006, 16:34
Hast du den Fehler mittlerweile gefunden?
Wenn ja kannst du ihn hier ja mal posten. Würde mich interessieren, weil ich das Problem mit PHP 5.1.4 nicht hatte.

__dejan__
24.07.2006, 18:22
Nein es hat weiterhin nicht funktioniert :( Ich meine ich bin kein "Admin", aber php habe ich schon öfters installiert/kompiliert und irgendwann war es mir zu doof.

Letztenendes bin ich auf apt-get.org drauf und habe mir aus einem unofiziellen repositorie http://people.debian.org/~dexter php5.1.4 installiert.