Error when compiling PHP5 with MySQL enabled

Discussion in 'PHP' started by Dhingcha, Aug 16, 2008.

  1. #1
    The run down:

    I run Mac OS 10.4.10
    MySQL is located at: /usr/local/mysql
    Therefore the libraries are at: /usr/local/mysql/lib

    Now, I do this:

    ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --enable-debug

    Works good. Then I do make and make test. Oops! PHP thinks my MySQL libraries are in /usr/local/mysql/lib/mysql !! Notice the extra /mysql at the end. What's the deal? How do I fix this? I popped open my Makefile and everywhere I looked it shows /usr/local/mysql/lib

    Here's the "offical" error:

    dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
      Referenced from: /Users/jeremy/Desktop/php-5.2.3/sapi/cli/php
      Reason: image not found
    make: [test] Error 133 (ignored)
    Code (markup):
     
    Dhingcha, Aug 16, 2008 IP