Archive for January, 2007

64bit Install of PHP 5.2.0 & MySQL 5.0.18, Awh!!!

This post is meant to be a time saver for anyone else attempting to do a custom compile of PHP 5.2.0 with mysql and mysqli support built in. The systems this setup is being install on are 64bit Pentium machines running Fedora Core 5.
After way too many hours, 30+, of trial and error I found the magic solution, at least in this setup. Basically PHP when doing the configure was looking in the wrong place for the 64bit version of the mysql libraries, mainly libmysqlclient.a. Mysql is installed into /usr/local/mysql and works like a champ. The configure looks for the library in /usr/lib instead of looking in /usr/lib64 as it should considering the –with-libdir=/usr/lib64 was used. To solve this fiasco a simple symbolic link was the answer.

# ln -s /usr/lib64/libmysqlclient.a /usr/lib/mysqlclient.a

After that you should be in good shape for a good compile.

A few confessions

I have a few confessions to make before we get started here:

  1. I write to get a point across, not to be a English professor. If I make a spelling or grammatical error and you still understood what I was saying, mission accomplished.
  2. I may/may not post often, it really depends on my schedule.

Okay, here we go….