Installation von PHP 4.2.3 mit MySQL - Unterstützung

Apache, Lighttpd, nginx, Cherokee
Post Reply
slippmann
Posts: 13
Joined: 2003-08-02 15:33
 

Installation von PHP 4.2.3 mit MySQL - Unterstützung

Post by slippmann »

Hi liebes Forum,

ich bräuchte mal ganz dringend Hilfe bei der Installation von PHP! Habe mir das tar aus dem Internet gezogen und entpackt. Nur leider bricht er nach .-configure und make ab. Mit den folgenden Fehlermeldungen

Code: Select all

./.libs/libphp4.a(my_malloc.o)(.text+0xb7): In function `my_malloc':
/root/php-4.2.3/ext/mysql/libmysql/my_malloc.c:24: undefined reference to `errno'
./.libs/libphp4.a(my_realloc.o)(.text+0xb0): In function `my_realloc':
/root/php-4.2.3/ext/mysql/libmysql/my_realloc.c:44: undefined reference to `errno'
./.libs/libphp4.a(my_error.o)(.text+0x2a4): In function `my_error':
/root/php-4.2.3/ext/mysql/libmysql/my_error.c:32: undefined reference to `errno'
./.libs/libphp4.a(my_lib.o)(.text+0x3c4): In function `my_dir':
/root/php-4.2.3/ext/mysql/libmysql/my_lib.c:162: undefined reference to `errno'
./.libs/libphp4.a(my_lib.o)(.text+0x5ab): In function `my_stat':
/root/php-4.2.3/ext/mysql/libmysql/my_lib.c:585: undefined reference to `errno'
./.libs/libphp4.a(my_getwd.o)(.text+0xc1):/root/php-4.2.3/ext/mysql/libmysql/my_getwd.c:43: more undefined references 
to `errno' follow
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/root/php-4.2.3'
make: *** [all-recursive] Error 1
Kann mir jemand sagen was ich falsch mache. muss ich dem ./configure noch irgentwas mitgeben.

Danke für hilkfe
myname
Posts: 96
Joined: 2003-10-31 11:12
 

Re: Installation von PHP 4.2.3 mit MySQL - Unterstützung

Post by myname »

Du solltest nach dem Configure auf jeden Fall so einiges angeben.

Ich weiß zwar nicht genau, ob es daran liegt, aber ein
./configure --with-mysql sollte dabei sein.
Zudem hast Du dann auch nur eine Minimalkonfiguration von PHP.

Schau dir mal
http://www.netsecond.net/howto/#php
an und scroll "zur alten Anleitung", wenn Du selber kompilieren möchtest. - Selber kompilieren kann ich dir auch nur empfehlen, da ich persönlich Probleme mit den RPM Packages hatte.

Außerdem macht es IMHO nur noch wenig Sinn die php 4.2.3 zu installieren, nimm lieber 4.3.3 oder 4.3.4
Post Reply