Home > Web Hosting > Compiling PHP on a 64 bit system

Compiling PHP on a 64 bit system

October 6th, 2006 Leave a comment Go to comments

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!

Sphere: Related Content

Categories: Web Hosting Tags:
  1. Craig
    September 11th, 2007 at 09:52 | #1

    Thank you SO much !

  2. Jeff
    July 23rd, 2008 at 12:12 | #2

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

  3. afpdias
    October 8th, 2008 at 02:31 | #3

    Really helpful. Thanks :)

  1. No trackbacks yet.