LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP 4.3.4 configure error (https://www.linuxquestions.org/questions/linux-software-2/php-4-3-4-configure-error-158316/)

willatwork 03-16-2004 03:17 AM

PHP 4.3.4 configure error
 
Hi all, this is the first time i am installing PHP 4.3.4 on my RH 9.0.

When i try to configure php using :

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-openssl=/usr/local/ssl --enable-track-vars

i always get this result:

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

Can anyone please help me with this. Thanks a millions!

Will

hw-tph 03-16-2004 04:00 AM

Did you check config.log for a more detailed error message?
I think you might have to install the zlib development package.


Håkan

willatwork 03-16-2004 04:05 AM

I did suspect that i did not installed zlib package therefore i tried to install it but was prompt that zlib have already been installed.

as for the config.log, i no idea how to understand it. one extract from the config.log is below. did you see anything wrong?

int main() {
int a = accept(1, (struct sockaddr *) 0, (size_t *) 0);
; return 0; }
configure:54988: checking return type of qsort
configure:55006: gcc -c -g -O2 conftest.c 1>&5
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/ssl/lib -L/usr/local/ssl/lib conftest.c -lmysqlclient -lssl -lcrypto -lresolv -lm -ldl -lnsl 1>&5
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o)(.text+0xb4): In function `my_compress_alloc':
: undefined reference to `compress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o)(.text+0x12a): In function `my_uncompress':
: undefined reference to `uncompress'
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/ssl/lib -L/usr/local/ssl/lib conftest.c -lmysqlclient -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl 1>&5
/usr/bin/ld: cannot find -lz
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();

leez 05-25-2005 02:17 PM

Make sure you install the zlib DEV package, not just the zlib package. That allowed the compile to continue for me.


All times are GMT -5. The time now is 10:40 PM.