PHP5 für MySQL 5 kompilieren
Posted: 2005-11-01 10:42
Hi,
wollte endlich mal das neue MySQL testen, hab es über die RPM Pakete auf meinem Suse 9.2 installiert und läuft einwandfrei. Mit der alten PHP installation 4.xx kann ich auch mit phpmyadmin drauf zugreifen. Dann wollte ich noch PHP5 installieren da der Server eigentlich blank ist dabei kam folgendes raus:
Eingabe: ./configure '--with-mysqli=/usr/bin/mysql_config'
Fehlermeldung:
checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check config.log for more information.
in config.log steht am Ende:
#line 62532 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_set_server_option();
int main() {
mysql_set_server_option()
; return 0; }
Habe schon gegooglet doch da war immer der Fehler dass der Pfad nicht angegeben wurde. Dieser ist aber korrekt und das File liegt auch dort. Von MySQL 5 habe ich sämmtliche Pakages installiert, da kann also gar nix fehlen.
wollte endlich mal das neue MySQL testen, hab es über die RPM Pakete auf meinem Suse 9.2 installiert und läuft einwandfrei. Mit der alten PHP installation 4.xx kann ich auch mit phpmyadmin drauf zugreifen. Dann wollte ich noch PHP5 installieren da der Server eigentlich blank ist dabei kam folgendes raus:
Eingabe: ./configure '--with-mysqli=/usr/bin/mysql_config'
Fehlermeldung:
checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check config.log for more information.
in config.log steht am Ende:
#line 62532 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_set_server_option();
int main() {
mysql_set_server_option()
; return 0; }
Habe schon gegooglet doch da war immer der Fehler dass der Pfad nicht angegeben wurde. Dieser ist aber korrekt und das File liegt auch dort. Von MySQL 5 habe ich sämmtliche Pakages installiert, da kann also gar nix fehlen.