Re: Trying to load MySQL libraries from wrong location, configure failing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Geoffrey,

As John rightly pointed out, I ran into the same or similar issue. I battled it out a bit with the PHP people but frankly their attitude just bothers me.

In any case I voted for your bug and I saw that you referenced my bug, so maybe they will take this issue more seriously.

I did come up with a workaround by using symlinks

cd /usr/local/mysql/lib
ln -s /usr/local/mysql/lib ./mysql
cd /usr/local/mysql/include
ln -s /usr/local/mysql/include ./mysql

This will make your build compile and work correctly, however it is not an optimal solution, what needs to happen is that the hard references to /usr/local/mysql/lib/mysql need to be removed.

-J

---
Juan A. Pons
juan@xxxxxxxx



On Sep 1, 2007, at 3:56 PM, Geoffrey Sneddon wrote:


On 1 Sep 2007, at 18:49, John N wrote:

Hello,

On 9/1/07, Geoffrey Sneddon <geoffers@xxxxxxxxx> wrote:
As can be seen from the debug.log, PHP attempts to read from /usr/
local/mysql/lib/mysql, which doesn't exist. It should be looking in /
usr/local/mysql/lib. I'm running Mac OS 10.4.10/x86, with nothing
else interesting about my setup. Everything worked up to PHP 5.2.3 on
this.

It's here been discussed with Juan, and he has reported a Php bug,

  http://bugs.php.net/bug.php?id=42464

The Php developers appear to be in disagreement :-/  You may wish to
add your voice & experiences there.

As it's marked as bogus, I cannot comment on that bug. I have opened another (#42515).


One may notice that when building from source MySql on OSX, the
locations are correctly,

  /usr/local/mysql/lib/mysql
  /usr/local/mysql/include/mysql

I'm reluctant to do, as the normal tarball doesn't have the patches for XNU's threading (the default ones lead to terrible performance).

-g.


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux