Jump to content

Re: Build error php


Recommended Posts

Hi,

 

I'm trying to build php but it keeps giving me errors - configure: error: build test failed.  Please check the config.log for details

 

./configure \

--with-apxs2=/usr/local/apache2/bin/apxs \

--with-mysql

 

I running on CentOS 5 x86_64. Am I missing something? Thanks in Advanced.

 

[attachment deleted by admin]

Link to comment
Share on other sites

Hi,

 

I have recompiled apache to enable suexec and install successfully. I have tried the php package but doesn't appear to be working and there is no libphp5.so. Now I am trying to use the php source instead to see if it works, but the build fails.

 

With the config.log, I really don't understand it, please enlighten me. Thanks.

 

Link to comment
Share on other sites

Hi,

 

All the interesting messages such as libxml2 required etc. I have resolved by installing the necessary packages. But the attached config.txt doesn't have much information that is of interest to me (As I don't really understand it). Thanks.

 

Link to comment
Share on other sites

Hi guys,

 

Configuring extensions

-----------------------------------------------

checking whether to enable LIBXML support... yes

checking libxml2 install dir... no

checking for xml2-config path... /usr/bin/xml2-config

checking whether libxml build works... no

configure: error: build test failed.  Please check the config.log for details.

 

Sorry, this probably is the cause of the problem. Any suggestions? Thanks.

 

Link to comment
Share on other sites

  • 2 weeks later...

Hi guys,

 

Another problem came up, I have tried compiling php with mysql, here is the error message I got in config.log:

 

/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient

/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient

/usr/bin/ld: cannot find -lmysqlclient

collect2: ld returned 1 exit status

 

Thanks.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.