ID:               42464
 Updated by:       [EMAIL PROTECTED]
 Reported By:      juan at pons dot org
-Status:           Open
+Status:           Feedback
 Bug Type:         *Compile Issues
 Operating System: OSX 10.4.10
 PHP Version:      5.2.3
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi




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

[2007-08-28 19:21:35] juan at pons dot org

Description:
------------
Under OSX, the MySQL binaries from mysql.org get installed under 
/usr/local/mysql


When you try to compile php with --with-mysql=/usr/local/mysql you are

unable to compile because the php mysql libs are trying to link against

libraries at /usr/local/mysql/lib/mysql which does not exist in this 
MySQL installation, The correct path should be /usr/local/mysql/lib

I found a way around this problem, by creating appropiate symlinks, but

this is obviously not ideal

Reproduce code:
---------------
# tar -zxvf php-5.2.3.tar.gz
# cd php-5.2.3
# rm configure
# ./buildconf --force
# ./configure --with-apxs2=/app/apache2/bin/apxs --without-pear
--with-config-file-path=/app/ini --with-mysql=/usr/local/mysql
# make
# make install
# /app/apache2/bin/apachectl start

Expected result:
----------------
compile php and have it work with apache

Actual result:
--------------
httpd: Syntax error on line 53 of /app/apache2/conf/httpd.conf: Cannot

load /app/apache2/modules/libphp5.so into server: Library not loaded: 
/usr/local/mysql/lib/mysql/libmysqlclient.15.dylib\n  Referenced from:

/app/apache2/modules/libphp5.so\n  Reason: image not found


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


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

Reply via email to