PHP5 für MySQL 5 kompilieren

Apache, Lighttpd, nginx, Cherokee
Post Reply
g4m813r
Posts: 16
Joined: 2004-11-11 23:09
 

PHP5 für MySQL 5 kompilieren

Post by g4m813r »

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.
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: PHP5 für MySQL 5 kompilieren

Post by Roger Wilco »

Schau dir den Parameter, den du dem Configure-Skript übergibst nochmal genau an...
g4m813r
Posts: 16
Joined: 2004-11-11 23:09
 

Re: PHP5 für MySQL 5 kompilieren

Post by g4m813r »

Was soll damit sein? Der steht genauso in der Doku. Habe damit auch schon vorher PHP5 mit MySQL 4.1 kompiliert.

edit: habs hinbekommen
problem war das ich mysql 4 nicht richtig gelöscht hatte
g4m813r
Posts: 16
Joined: 2004-11-11 23:09
 

Re: PHP5 für MySQL 5 kompilieren

Post by g4m813r »

So configure geht zwar aber make will nicht:

: multiple definition of `my_net_write'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x260): first defined here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x350): In function `net_write_command':
: multiple definition of `net_write_command'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x350): first defined here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0xa10): In function `my_net_read':
: multiple definition of `my_net_read'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0xa10): first defined here
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1


der obere fehler wiederholt sich noch ein paar dutzend mal
g4m813r
Posts: 16
Joined: 2004-11-11 23:09
 

Re: PHP5 für MySQL 5 kompilieren

Post by g4m813r »

OK der Fehler kommt weil ich mysqli und mysql einbinden will.
habe ./configure '--with-mysqli=/usr/bin/mysql_config' '--with-mysql=/usr' eingegeben
so gings bei mysql 4.1 und ner älteren php5er auch schon
nur jetzt irgendwie nicht mehr :(
einer ne idee?
djcrackman
Posts: 207
Joined: 2005-06-02 11:58
Contact:
 

Re: PHP5 für MySQL 5 kompilieren

Post by djcrackman »

Sind die korrekten dev-packages installiert?
Post Reply