note 82365 added to ref.mysqli

From: Date: Tue, 08 Apr 2008 10:56:10 +0000
Subject: note 82365 added to ref.mysqli
Groups: php.notes 
Request: Send a blank email to php-notes+get-138018@lists.php.net to get a copy of this message
I had a problem compiling PHP 5.2.5 with mysqli enabled on Mac OS X. Whether this problem was unique to me I do not no, so I am posting this for anybody else that runs into the same problem. Configure would run right to the end, but I had it telling me something had failed and that it was likely messed up. Upon checking debug.log I noticed this: dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib Referenced from: /Users/daniel/desktop/php -5.2.5/sapi/cli/php Reason: image not found /bin/sh: line 1: /Users/daniel/desktop/php -5.2.5/tmp-php.ini: Permission denied dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib Referenced from: /Users/daniel/desktop/php -5.2.5/sapi/cli/php Reason: image not found make: [test] Error 133 (ignored) After screwing around for an hour and screaming many profanities at my computer I looked back at the error and noticed: "/usr/local/mysql/lib/<b>mysql/</b>libmysqlclient.15.dylib Why it was using this path I do not know, but I headslapped when I realised how simple it was! I solved the problem by creating a link called mysql that linked back on itself: cd /usr/local/mysql/lib sudo ln -s ./ mysql Problem solved! I probably should have figured out why it was doing this instead, but this was easier and saved me from allot more frustration. ---- Server IP: 69.147.83.197 Probable Submitter: 58.163.144.74 ---- Manual Page -- http://www.php.net/manual/en/ref.mysqli.php Edit -- https://master.php.net/note/edit/82365 Del: integrated -- https://master.php.net/note/delete/82365/integrated Del: useless -- https://master.php.net/note/delete/82365/useless Del: bad code -- https://master.php.net/note/delete/82365/bad+code Del: spam -- https://master.php.net/note/delete/82365/spam Del: non-english -- https://master.php.net/note/delete/82365/non-english Del: in docs -- https://master.php.net/note/delete/82365/in+docs Del: other reasons-- https://master.php.net/note/delete/82365 Reject -- https://master.php.net/note/reject/82365 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138018) next »