LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2004, 08:39 AM   #1
Transition
Member
 
Registered: Aug 2003
Distribution: Slackware 10
Posts: 48

Rep: Reputation: 15
./configure php5 error - log included


hi everyone,

trying to install php5 on a slackware10 system with the following options..

./configure --with-mysql --with-apxs=/usr/sbin/apxs

also just tried doing a compile w/ no options

./configure

either way the intallation fails and this is what my config.log says. I'm having a hard time identifying exactly what the error is.


!http://www.dionsys.com/config.log

any help is greatly appreciated!

Last edited by Transition; 07-01-2004 at 08:41 AM.
 
Old 07-01-2004, 11:43 AM   #2
Transition
Member
 
Registered: Aug 2003
Distribution: Slackware 10
Posts: 48

Original Poster
Rep: Reputation: 15
bump
 
Old 07-01-2004, 03:23 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
This is the critical section of your config.log:

Code:
configure:18053: checking whether libxml build works
configure:18080: gcc -o conftest -g -O2   conftest.c 
          
         -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm 1>&5
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
configure: failed program was:
#line 18069 "configure"
#include "confdefs.h"

    
    char xmlInitParser();
    int main() {
      xmlInitParser();
      return 0;
    }
In particular note the line ending with "cannot find -lz". This means that the linker could not find your zlib library, which is used for compression. Check and see if you have zlib installed (you probably need zlib-devel, or whatever package contains the library's headers, too). If not, go ahead and install it. If you do, check "locate *libz*", which should spit out the path to the libz .so file. Then use ./configure --with-zlib=<directory the libz file is in>.

Note that all of this is happening during a check for libxml, so make sure you have that too.
 
Old 07-15-2004, 10:57 PM   #4
DaCypher
LQ Newbie
 
Registered: Jun 2003
Distribution: Debian 3.0rev2
Posts: 17

Rep: Reputation: Disabled
I am actually getting a pretty similar problem but I am running Debian. At first PHP's configure script would fail saying that my version of libxml was too old. I eventually modified my sources.list to use testing code instead of stable and apt-get'ed libxml so I am now upgraded above what PHP requires. However, I still have trouble around the same point as I did before as well as the original poster's problem (libxml stuff).

Here is the last part of the configure output:
Code:
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking whether libxml build works... no
configure: error: build test failed.  Please check the config.log for details.
And here is the relevant last part of the config.log:
Code:
configure:17846: checking whether to enable LIBXML support
configure:17893: checking libxml2 install dir
configure:18053: checking whether libxml build works
configure:18080: gcc -o conftest -g -O2   conftest.c

         -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm 1>&5
/usr/lib/libxml2.a(threads.o): In function `xmlGetGlobalState__internal_alias':
threads.o(.text+0x2b9): undefined reference to `pthread_once'
threads.o(.text+0x2c6): undefined reference to `pthread_getspecific'
threads.o(.text+0x2e9): undefined reference to `pthread_setspecific'
/usr/lib/libxml2.a(threads.o): In function `xmlIsMainThread__internal_alias':
threads.o(.text+0x326): undefined reference to `pthread_once'
/usr/lib/libxml2.a(threads.o): In function `xmlOnceInit':
threads.o(.text+0x3b6): undefined reference to `pthread_key_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 18069 "configure"
#include "confdefs.h"


    char xmlInitParser();
    int main() {
      xmlInitParser();
      return 0;
    }
It appears as though I am missing a library as the linker is throwing errors (possibly I just have an incorrect directory?). Thanks for any help.

Last edited by DaCypher; 07-15-2004 at 11:03 PM.
 
Old 07-16-2004, 09:11 AM   #5
DaCypher
LQ Newbie
 
Registered: Jun 2003
Distribution: Debian 3.0rev2
Posts: 17

Rep: Reputation: Disabled
Ok, I fixed it, this is what I did:
I ended up having to apt-get remove libxml2-devel and then apt-get install libxml2-dev (I guess there are some problems between the two, I think the devel package is gnome related the dev package is general xml stuff). Anyways, once I did that, the configure worked fine. Hopefully this will help someone in a similar situation as I came to this thread via google...
 
  


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
php5 ./configure error: Cannot find MySQL header files ldp Linux - Software 28 08-26-2011 01:25 PM
configure php5 and mysql issue jiawj Programming 1 08-17-2005 04:34 PM
PHP5 installation error jackster Linux - Software 2 02-01-2005 02:47 AM
php5 configure with different php.ini file dtra Linux - Software 2 01-19-2005 09:04 PM
Grub Error (conf included) musicman_ace Linux - General 3 08-25-2004 11:24 AM


All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration