ID:               42515
 Comment by:       jerry at scene-naturally dot dyndns dot org
 Reported By:      geoffers at gmail dot com
 Status:           Open
 Bug Type:         MySQL related
 Operating System: Mac OS 10.4.10
 PHP Version:      5.2.4
 New Comment:

Try installing the source version either the 5.1 development version or

the 5.0.nn version. doing so adds in the correct libs, etc.

The 5.1 source is at the bottom of

http://dev.mysql.com/downloads/mysql/5.1.html


(note: usually binary packages are not suited for using to build other

softwares.)


Previous Comments:
------------------------------------------------------------------------

[2007-09-01 19:54:36] geoffers at gmail dot com

Description:
------------
As #42464 is marked as bogus, and I cannot therefore comment on that:

The official MySQL binaries install at /usr/local/mysql. PHP tries to 
read from /usr/local/mysql/lib/mysql, which does not exist.

The prior bug was marked as bogus due to ./buildconf being used: on a 
non-"hackish" copy of PHP it fails too. Running just:
% cd php-5.2.4
% ./configure --with-mysql=/usr/local/mysql

./configure doesn't fail like jani claimed. Instead, it says that a 
system library hasn't been found, and to email php-install. If you try

to run make regardless, it succeeds, but you cannot do anything with 
the 
binary as it cannot load the libraries.

Take a clean OS X install, install the mysql,org binary, then try to 
compile PHP as above. It'll fail. This isn't a bogus report. This is a

real bug, which really makes PHP totally unusable.




Reproduce code:
---------------
% cd php-5.2.4
% ./configure --with-mysql=/usr/local/mysql
% make

Expected result:
----------------
Working PHP binary to be produced

Actual result:
--------------
A non-working PHP binary, trying to load dynamic libraries (which exist

in /usr/local/mysql/lib) from /usr/local/mysql/lib/mysql).


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42515&edit=1

Reply via email to