LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-16-2004, 03:17 AM   #1
willatwork
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
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
 
Old 03-16-2004, 04:00 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

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


Håkan
 
Old 03-16-2004, 04:05 AM   #3
willatwork
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
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();
 
Old 05-25-2005, 02:17 PM   #4
leez
LQ Newbie
 
Registered: May 2005
Posts: 1

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP configure error: Cannot find libz ridertech Linux - Software 2 08-08-2008 10:14 PM
configure php install error obj63 Linux - Software 2 08-18-2004 09:19 PM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM
php 4.3.2 configure error adrianmak Linux - Software 0 06-19-2003 08:23 PM
Configure with php kelper Linux - Software 3 01-27-2003 06:47 PM


All times are GMT -5. The time now is 01:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration