To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Upgrading PHP

Upgrading PHP Issues concerning PHP version upgrades and future releases

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-16-2004, 09:54 AM   #1
DaCypher
Junior Member
 
Join Date: Jun 2003
Posts: 3
PHP5 Configure Error

At first PHP's configure script would fail saying that my version of libxml was too old. I eventually modified my sources.list (I'm using Debian 3.0r2) 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 (libxml stuff).

Here is the last part of the configure output (./configure --with-apxs --with-pgsql):
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.
I have also tried --with-libxml-dir but the only thing that did was "checking libxml2 install dir... yes"

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.
DaCypher is offline   Reply With Quote
Old 07-16-2004, 10:01 AM   #2
goldbug
50,000 Watts of Goodwill
 
goldbug's Avatar
 
Join Date: May 2003
Location: Rummaging through your garbage.
Posts: 1,326
where do you have libxml2 installed, and what does your complete configure command look like?
__________________
Many eyes make few mistakes

goldendance
goldbug is offline   Reply With Quote
Old 07-16-2004, 10:08 AM   #3
DaCypher
Junior Member
 
Join Date: Jun 2003
Posts: 3
Actually, I just fixed it and I'm not really sure how I knew to do what I did.

By the way, my complete configure was this:
./configure --with-apxs --with-pgsql
And I have libxml installed to /usr/lib.

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.

Of course I am able to figure this out 5 minutes after I post it after spending several hours on it yesterday. Oh well, hopefully this will help someone in a similar situation.
DaCypher is offline   Reply With Quote
Old 07-16-2004, 10:26 AM   #4
goldbug
50,000 Watts of Goodwill
 
goldbug's Avatar
 
Join Date: May 2003
Location: Rummaging through your garbage.
Posts: 1,326
EDIT: nm, just read that your configure worked fine after snagging libxml2
__________________
Many eyes make few mistakes

goldendance
goldbug is offline   Reply With Quote
Old 09-21-2009, 02:18 PM   #5
amalsalim
Junior Member
 
Join Date: Sep 2009
Posts: 1
i got it fixed.

i did a yum install libxml-2

After that i located the libxml-2 file and then copied and pasted into the location that php was searching for
amalsalim is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


All times are GMT -4. The time now is 03:13 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.