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!
Subscribe to RSS
3 People have left comments on this post
Sep 11, 2007 - 09:09:38Thank you SO much !
Wow, this solved the problem after a day of trying to compile! Thank you!
Really helpful. Thanks