supmeth Posted October 1, 2008 Share Posted October 1, 2008 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] Quote Link to comment Share on other sites More sharing options...
trq Posted October 1, 2008 Share Posted October 1, 2008 Any particular reason your building from source? there are packages available for CentOS. Oh, and did you do as the error suggested and check the config.log? What does it say? Quote Link to comment Share on other sites More sharing options...
supmeth Posted October 1, 2008 Author Share Posted October 1, 2008 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. Quote Link to comment Share on other sites More sharing options...
corbin Posted October 1, 2008 Share Posted October 1, 2008 Post parts of it that look interesting. Quote Link to comment Share on other sites More sharing options...
supmeth Posted October 2, 2008 Author Share Posted October 2, 2008 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. Quote Link to comment Share on other sites More sharing options...
supmeth Posted October 3, 2008 Author Share Posted October 3, 2008 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. Quote Link to comment Share on other sites More sharing options...
supmeth Posted October 6, 2008 Author Share Posted October 6, 2008 Problem solved, just needed to re-install: http://www.howtoforge.com/forums/showthread.php?t=25933&highlight=checking+libxml+build Quote Link to comment Share on other sites More sharing options...
supmeth Posted October 20, 2008 Author Share Posted October 20, 2008 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. Quote Link to comment Share on other sites More sharing options...
supmeth Posted October 22, 2008 Author Share Posted October 22, 2008 Never mind just needed to specify the lib64. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.