From:             juan at pons dot org
Operating system: OSX 10.4.10
PHP version:      5.2.3
PHP Bug Type:     *Compile Issues
Bug description:  MySQ Library location issues

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 bug report at http://bugs.php.net/?id=42464&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42464&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42464&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42464&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42464&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42464&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42464&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42464&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42464&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42464&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42464&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42464&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42464&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42464&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42464&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42464&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42464&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42464&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42464&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42464&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42464&r=mysqlcfg

Reply via email to