RSS Subscribe to RSS

Compiling PHP on a 64 bit system

When compiling PHP on a 64 bit system don’t forget to add “–with-libdir=/lib64″ to the configure statement. A typical configure statement would be:

./configure –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql –with-libdir=/lib64

If you forget ./configure will fail in the mysql section with the error:

configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!


Posted on : Oct 06 2006
Posted under Web Hosting |

3 People have left comments on this post

Sep 11, 2007 - 09:09:38
Craig said:

Thank you SO much !

Jul 23, 2008 - 12:07:36
Jeff said:

Wow, this solved the problem after a day of trying to compile! Thank you!

Oct 8, 2008 - 02:10:58
afpdias said:

Really helpful. Thanks :)