PHP Configure und Compile Fehler
Datum: 16.07.2009 12:00:00PHP Configure und Compile Fehler
Mögliche auftretenden Fehler beim selbstkompilieren von php und welche Pakete man unter Debian/Ubuntu dann installieren muss.
Übersicht
- configure: error: Please reinstall the BZip2 distribution
- configure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/
- configure: error: DBA: Could not find necessary header file(s)
- configure: error: libjpeg.(a|so) not found
- configure: error: libpng.(a|so) not found
- configure: error: xml2-config not found. Please check your libxml2 installation.
- configure: error: mcrypt.h not found. Please reinstall libmcrypt.
- configure: error: Please reinstall libmhash - I cannot find mhash.h
- configure: error: Cannot find MySQL header files under yes.
- configure: error: Please reinstall readline - I cannot find readline.h
- configure: error: cannot find mm library
- configure: error: Cannot find libtidy
- configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
Ein Problem das sehr oft auftritt wenn man frisch php kompiliert oder eine neue Extension hinzufügen will ist das fehlen der -dev bzw -devel Paketen für die passende Extension. Die Angegeben Versionsnummer können natürlich abhängig von der Distribution und Version abweichen, aber es sollte zumindest einen hinweis in die richtige Richtung geben was dem System noch fehlt, die Beispiele beziehen sich alle auf Debian ETCH.
configure: error: Please reinstall the BZip2 distribution
Fehlende Bibliothek: libbz2
apt-get install libbz2-dev
configure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/
Fehlende Bibliothek: libcurl
apt-get install libcurl3-dev
Debian Lenny:
libcurl4-openssl-dev
configure: error: Cannot find MySQL header files under yes.
Fehlende Bibliothek: libmysql
apt-get install libmysqlclient15-dev
configure: error: DBA: Could not find necessary header file(s)
Fehlende Bibliothek: libgdbm
apt-get install libgdbm-dev
configure: error: libjpeg.(a|so) not found
Fehlende Bibliothek: libjpeg
apt-get install libjpeg62 libjpeg62-dev
configure: error: libpng.(a|so) not found
Fehlende Bibliothek: libpng
apt-get install libpng12-0 libpng12-dev
configure: error: xml2-config not found. Please check your libxml2 installation.
Fehlende Bibliothek: libxml2
apt-get install libxml2 libxml2-dev
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
Fehlende Bibliothek: libmcrypt
apt-get install libmcrypt4 libmcrypt-dev
configure: error: Please reinstall libmhash - I cannot find mhash.h
Fehlende Bibliothek: libmhash
apt-get install libmhash2 libmhash-dev
configure: error: Please reinstall readline - I cannot find readline.h
Fehlende Bibliothek: libreadline
apt-get install libreadline5-dev
configure: error: cannot find mm library
Fehlende Bibliothek: libmm
apt-get install libmm-dev libmm14
configure: error: Cannot find libtidy
Fehlende Bibliothek: libtidy
apt-get install libtidy-dev libtidy-0.99-0
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
Fehlende Bibliothek: libxslt
apt-get install libxslt1-dev libxslt1.1
Trackbacks (0)
Trackbackurl: http://www.robo47.net/trackback/text/6Es sind keine Trackbacks vorhanden.
You liked it ? Link it on your homepage or blog:



Benjamin Steininger ist Webentwickler auf der Suche nach einem neuen Job und
photographiert sehr gerne. Er beschäftigt sich viel mit dem Internet, PHP, Symfony, Testing und hat einen
Kommentare (6)
nice one, guter sammelkasten für fehlende dependencies
hi,
builde gerade php 5.3.3 auf debian squeeze.
dort tritt die Meldung "configure: error: DBA: Could not find necessary header file(s)" trotz installiertem libgdbm-dev Paket auf. Abhilfe schafft:
apt-get install libdb4.8 libdb4.8-dev
vielleicht hilft's ja zukünftig jemandem :)
lg,
kautzy
really nice collection! thx!
hi,
wiedermal ein paar ergänzungen für debian squeeze... gebuildete php version 5.3.3.
apt-get install libxpm4 libxpm-dev
apt-get install libfreetype6 libfreetype6-dev
apt-get install libgmp3-dev
apt-get install libc-client2007e libc-client2007e-dev
apt-get install libsasl2-2 libsasl2-dev libsasl2-modules
apt-get install freetds-common freetds-dev
apt-get install libiodbc2-dev
apt-get install unixodbc-dev
apt-get install libpq-dev
vielleicht hilft's ja jemandem.
lg,
kautzy
Super, danke.
hi,
wiedermal ein paar ergänzungen für debian squeeze... gebuildete php version 5.3.3.
apt-get install libxpm4 libxpm-dev
apt-get install libfreetype6 libfreetype6-dev
apt-get install libgmp3-dev
apt-get install libc-client2007e libc-client2007e-dev
apt-get install libsasl2-2 libsasl2-dev libsasl2-modules
apt-get install freetds-common freetds-dev
apt-get install libiodbc2-dev
apt-get install unixodbc-dev
apt-get install libpq-dev
vielleicht hilft's ja jemandem.
lg,
kautzy
Die Kommentare zu diesem Beitrag sind gesperrt.