Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Issues with CouchBase and Mamp - Fatal error: Class 'Couchbase' not found

4 replies [Last post]
  • Login or register to post comments
Thu, 06/28/2012 - 06:40
itsmontoya
Offline
Joined: 06/28/2012
Groups: None

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

Top
  • Login or register to post comments
Thu, 06/28/2012 - 07:08
itsmontoya
Offline
Joined: 06/28/2012
Groups: None

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

Top
  • Login or register to post comments
Thu, 06/28/2012 - 07:21
itsmontoya
Offline
Joined: 06/28/2012
Groups: None

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!

Top
  • Login or register to post comments
Tue, 07/03/2012 - 11:39
ingenthr
Offline
Joined: 03/16/2010
Groups:

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.

Top
  • Login or register to post comments
Tue, 07/03/2012 - 12:14
itsmontoya
Offline
Joined: 06/28/2012
Groups: None

That is correct! The fix to this issue involves recompiling the php sdk.

Thanks again for the assistance!

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker