Dear all,

I am to set up a LAMPS system
(Red Hat 7.3, Apache 1.3.29, MySQL 4.0.18, PHP 4.3.4).

When trying to configure PHP with the follwing command:

    ./configure --with-apache=/usr/local/apache/apache_1.3.29

    --with-mysql=/usr/local/mysql

    --with-mcrypt=/usr/local/mcrypt_2_5_7/libmcrypt-2.5.7


... I get this:

****
configure: error: Try adding --with-zlib-dir=<DIR>. Please check config.log
for more information.
****



(note: zlib and zlib-devel are already installed as rpm)

... looking into the config.log:



****

configure:55357: checking for mysql_close in -lmysqlclient
configure:55376: gcc -o
conftest -g -O2  -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib  -Wl
,-rpath,/usr/local/lib -L/usr/local/lib
conftest.c -lmysqlclient  -lmcrypt -lltdl -lresolv -lm -ldl -lnsl  1>&5
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
configure: failed program was:
#line 55365 "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_close();

int main() {
mysql_close()
; return 0; }
configure:55738: checking for mysql_errno in -lmysqlclient
configure:55757: gcc -o
conftest -g -O2  -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib  -Wl
,-rpath,/usr/local/lib -L/usr/local/lib
conftest.c -lmysqlclient  -lz -lmcrypt -lltdl -lresolv -lm -ldl -lnsl  1>&5
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
configure: failed program was:
#line 55746 "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_errno();

int main() {
mysql_errno()
; return 0; }
****



As I am no proffessional this the the point where

I canīt proceed on my own.



Does anyone has an idea how to fix the problem?



Greetings + thanks in advance

Klaus

Reply via email to