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!

Comments

  1. Craig says:

    Thank you SO much !

  2. Jeff says:

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

  3. afpdias says:

    Really helpful. Thanks :)

Speak Your Mind

*