Hallo,
ich wollte wie folgt PHP kompilieren (configure von der SE 0.040 übernommen) um zu Testen, da ich danach noch eigene Module einbinden möchte
Bash
#!/bin/sh
clear
cd /root/php-4.4.0/
make clean
rm ./config.cache
./configure \
--prefix=/usr/local/pd-admin2 \
--with-config-file-path=/usr/local/pd-admin2/lib \
--enable-cgi \
--enable-force-cgi-redirect \
--with-mysql=/usr/local/pd-admin2 \
--with-mysql-sock=/usr/local/pd-admin2/var/mysql.run \
--with-pgsql=/usr/local/pd-admin2 \
--with-gd \
--with-jpeg=/usr/local/pd-admin2 \
--with-png=/usr/local/pd-admin2 \
--with-png-dir=/usr/local/pd-admin2 \
--with-jpeg-dir=/usr/local/pd-admin2 \
--enable-ftp \
--with-imap=/usr/local/pd-admin2 \
--with-imap-ssl=/usr/local/pd-admin2 \
--with-freetype-dir=/usr/local/pd-admin2 \
--with-zlib-dir=/usr/local/pd-admin2/lib \
--with-curl=/usr/local/pd-admin2 \
--with-gettext=/usr/local/pd-admin2 \
--with-libxml-dir=/usr/local/pd-admin2 \
--with-dom=/usr/local/pd-admin2 \
--with-dom-xslt=/usr/local/pd-admin2 \
--with-dom-exslt=/usr/local/pd-admin2 \
--enable-calendar \
--enable-wddx \
--enable-bcmath \
--with-bz2=/usr/local/pd-admin2 \
--with-mcrypt=/usr/local/pd-admin2 \
--enable-exif \
--enable-discard-path \
--enable-mbstring \
--with-iconv=/usr/local/pd-admin2 \
--with-openssl=/usr/local/pd-admin2 && \
make && \
make check && \
make install && \
make distclean;
Alles anzeigen
wäre ja zu schön, wenn es funktioniert hätte :roll:
folgende Fehlermeldung erhalte ich
Code
[...]
Configuring extensions
checking for OpenSSL support... yes
checking for Kerberos support... no
checking for pkg-config... no
checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... yes
checking for SSL_CTX_set_ssl_version in -lssl... yes
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined... /usr/local/pd-admin2/lib
configure: error: Cannot find libz
Alles anzeigen
kann mir jemand sagen, wie ich das Problem beheben muss?
bzw. wie muss der Pfad zur zlib lauten?
in der SE wurde es ja wie folgt gemacht
Zitat--with-zlib-dir=/usr/local/pd-admin2/lib
wenn ich diese Zeile auskommentiere, erhalte ich folgendes
Code
[...]
checking for GD support... yes
checking for the location of libjpeg... /usr/local/pd-admin2
checking for the location of libpng... /usr/local/pd-admin2
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /usr/local/pd-admin2
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
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
configure: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>
./php.sh: line 25: --with-curl=/usr/local/pd-admin2: Datei oder Verzeichnis nicht gefunden
Alles anzeigen
nun bin ich irgendwie ganz Ratlos
warum findet er auf einmal "/usr/local/pd-admin2" nicht mehr?
über jeden Ratschlag bin ich dankbar
mfg
Twilo