Issues with CouchBase and Mamp - Fatal error: Class 'Couchbase' not found
I spent a couple hours searching this on Google and StackOverflow, I'm sorry if this has been answered before.
So I downloaded the php 1.0 SDK (Running CB 1.8 on OSX 10.7, MAMP). I moved the couchbase.so file to the location of all the .so extensions for my php installation. I added the extension information to my php.ini file:
; Extensions
;extension=apc.so
extension=couchbase.so
extension=imap.so
extension=mcrypt.so
extension=gettext.so
extension=pgsql.so
extension=pdo_pgsql.so
extension=pdo_mysql.so
When I load up the test CouchBase screen I receive:
Fatal error: Class 'Couchbase' not found
I'm sure I'm doing something wrong, I'm just having trouble figuring out what it is. I'm very eager to start using Couchbase, the administration dashboard is great!
Thank you for any time and assistance it takes to assist me with this issue.
Kind Regards,
Josh
So I believe the problem is that the couchbase lib files are within the CouchBase folder in my Applications. I checked usr/lib for the couch library files and didn't find any of them.
Should I copy/paste the Couchbase lib files to my system library directory? Or should I change something in my php ini to properly direct the library files?
Thanks!
I think we've helped you with this in the IRC channel, correct? Please let me know if you are running into further issues here.
That is correct! The fix to this issue involves recompiling the php sdk.
Thanks again for the assistance!
From my PHP error logs:
PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/couchbase.so' - dlopen(/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/couchbase.so, 9): Library not loaded: /usr/local/lib/libcouchbase.1.dylib
Referenced from: /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/couchbase.so
Reason: image not found in Unknown on line 0