php 4.3.6 auf Suse 9.0 / Apache 2.0.48 kompilieren

Apache, Lighttpd, nginx, Cherokee
Post Reply
klaks
Posts: 16
Joined: 2003-04-11 19:21
 

php 4.3.6 auf Suse 9.0 / Apache 2.0.48 kompilieren

Post by klaks »

Hallo,

ich habe nach Zufallsprinzip Probleme mit dem Zugriff auf PEAR unter /usr/share/php und bin bei der Suche darauf gestossen, dass es einen open_basedir-Bug in der installierten PHP-Version 4.3.3 (u.a.) gibt.

Deshalb möchte ich php 4.3.6 auf meinem Suse 9.0/Apache 2.0.48-124 kompilieren, habe dabei aber Probleme.
Nach dem HowTo unter
http://www.netsecond.net/howto/index.ph ... 21&lang=de
habe ich per yast die dort aufgelisteten Pakete installiert, allerdings in der jeweiligen Suse 9.0-Version. xdevel gibt's bei Suse 9.0 nicht, ich habe es also erstmal nicht installiert, weil ich nicht weiss, ob ich die Version von z.B. 8.1 nehmen kann.

Beim configure-Kommando habe ich mich aus den php-Infos der zur Zeit installierten php 4.3.3- Version bedient:

Code: Select all

./configure --prefix=/usr/share --datadir=/usr/share/php --bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include --sysconfdir=/etc --with-_lib=lib --with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin --disable-debug --enable-bcmath --enable-calendar --enable-ctype --enable-dbase --enable-discard-path --enable-exif --enable-filepro --enable-force-cgi-redirect --enable-ftp --enable-gd-imgstrttf --enable-gd-native-ttf --enable-inline-optimization --enable-magic-quotes --enable-mbstr-enc-trans --enable-mbstring --enable-mbregex --enable-memory-limit --enable-safe-mode --enable-shmop --enable-sigchild --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-versioning --enable-wddx --enable-yp --with-bz2 --with-dom=/usr/include/libxml2 --with-ftp --with-gdbm --with-gettext --with-gmp --with-imap=yes --with-iodbc --with-jpeg-dir=/usr --with-ldap=yes --with-mcal=/usr --with-mcrypt --with-mhash --with-mysql=/usr --with-ndbm --with-pgsql=/usr --with-png-dir=/usr --with-readline --with-snmp --with-t1lib --with-tiff-dir=/usr --with-ttf --with-freetype-dir=yes --with-xml --with-xpm-dir=/usr/X11R6 --with-zlib=yes --with-qtdom=/usr/lib/qt3 --with-gd --with-openssl --with-curl --with-swf=/usr/src/packages/BUILD/swf/dist/ --with-imap-ssl --enable-xslt --with-xslt-sablot --with-iconv --with-apxs2=/usr/sbin/apxs2-prefork i586-suse-linux 
das endet leider mit "error. build test failed. Please check the config.log for details."

Die config.log findet Ihr unter http://www.klakoo.de/config.log

Kann mir jemand helfen? Das wäre supernett !!!!

Gruß
klaks
tody
Posts: 20
Joined: 2002-08-01 22:38
 

Re: php 4.3.6 auf Suse 9.0 / Apache 2.0.48 kompilieren

Post by tody »

ich kann dir nur sagen, wie ich das bei mir auf suse 9.0 kompiliert habe. vorher habe ich alle rpm-pakete mit yast deinstalliert:

Code: Select all

apache-layout suse 9.0

#   SuSE 6.x layout
<Layout SuSE>
    prefix:        /usr
    exec_prefix:   ${prefix}
    bindir:        ${prefix}/bin
    sbindir:       ${prefix}/sbin
    libdir:        ${prefix}/lib
    libexecdir:    ${prefix}/lib/apache2
    mandir:        ${prefix}/share/man
    sysconfdir:    /etc/apache2
    datadir:       /srv/www
    installbuilddir: ${datadir}/build
    errordir:      ${datadir}/error
    iconsdir:      ${datadir}/icons
    htdocsdir:     ${datadir}/htdocs
    manualdir:     ${datadir}/manual
    cgidir:        ${datadir}/cgi-bin
    includedir:    ${prefix}/include/apache2
    localstatedir: /var/lib/apache2
    runtimedir:    /var/run
    logfiledir:    /var/log/apache2
    proxycachedir: /var/cache/apache2
</Layout>


apache2

./configure --with-mpm=worker --enable-modules="so http" --enable-mods-shared="info status cern_meta usertrack asis include autoindex cgid imap deflate alias auth auth_anon auth_digest access cache mem_cache file-cache cgi dir env ext_filter expires headers file_cache log_config mime mime_magic negotiation rewrite speling actions userdir setenvif" --enable-layout=SuSE --enable-static-support --enable-suexec --with-suexec-caller=wwwrun --with-suexec-userdir=html --with-suexec-docroot=/srv/www/htdocs --with-suexec-uidmin=635 --with-suexec-gidmin=100 --with-suexec-safepath="/usr/local/bin:/usr/bin:/bin" --silent

php

./configure --enable-track-vars --enable-versioning --enable-sysvshm --enable-sysvsem --enable-sysvmsg --enable-sockets --with-mysql-sock=/tmp/mysql.sock --with-mysql=/usr --with-zlib-dir=/usr/local --disable-ipv6 --disable-debug --with-apxs2=/usr/sbin/apxs --with-config-file-path=/etc --prefix=/usr/local --enable-memory-limit --with-gd=yes --enable-gd-native-ttf --enable-gd-imgstrttf --with-tiff-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --silent
klaks
Posts: 16
Joined: 2003-04-11 19:21
 

Re: php 4.3.6 auf Suse 9.0 / Apache 2.0.48 kompilieren

Post by klaks »

Danke erstmal für die schnelle Antwort.

Mit dem php-configure Befehl hat es nach einer kleinen Ã?nderung bei der apxs-Option geklappt mit der Kompilierung. Ich brauche aber imap. Habe mittlerweile noch die Pakete pam-devel, mhash-devel und qt3-devel installiert. Jetzt habe ich die Fehlermeldung:

Code: Select all

C++ compiler cannot create executables
Werde mal weiter sehen.
Post Reply