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

PHP Startup: Unable to load dynamic library memcached.so on Ubuntu

10 replies [Last post]
  • Login or register to post comments
Sun, 09/11/2011 - 07:47
zevallos
Offline
Joined: 09/10/2011
Groups: None

I´m getting the following error, so I cannot add the memcached.so to use with PHP. I have a Ubuntu 64 bit with XAMPP installed and MemBase server working fine.

I´ve tried to compile manually, but also do not work...

Any clues?

Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/memcached.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/memcached.so: wrong ELF class: ELFCLASS64 in Unknown on line 0

Top
  • Login or register to post comments
Tue, 09/20/2011 - 06:02
jan
Offline
Joined: 02/15/2011
Groups: None

Hey,

thanks for writing and sorry for your troubles. I know I haven't tested a XAMPP install yet, so it might be entirely our fault. I'll give this a try later today and report back.

In the meantime:

1. Can you try the 32 bit version?
2. What errors do you get when compiling yourself? Or is it just the same error?

Cheers
jan
--

Top
  • Login or register to post comments
Mon, 12/26/2011 - 22:13
ashishtiwari19
Offline
Joined: 12/26/2011
Groups: None

Same problem here, but no answers. really had been struggling with this since 2 days

Top
  • Login or register to post comments
Wed, 01/11/2012 - 15:20
ingenthr
Offline
Joined: 03/16/2010
Groups:

I think we can help, but we just need to know a bit more about the issue. Which OS release are you on? I'll try to reproduce it.

Top
  • Login or register to post comments
Wed, 01/11/2012 - 22:42
ashishtiwari19
Offline
Joined: 12/26/2011
Groups: None

Am using 64 bit Ubuntu 10.4 Lucid. (Even tried with 11 version) I tried to install xampp 1.7.7 (even tried 1.7.4)

I tried to follow http://www.zayinkrige.com/installing-memcached-on-ubuntu-10-04/

and many other links, but it gives me same error

"Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/memcached.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/memcached.so: wrong ELF class: ELFCLASS64 in Unknown on line 0"

Top
  • Login or register to post comments
Wed, 01/11/2012 - 23:18
ingenthr
Offline
Joined: 03/16/2010
Groups:

The "wrong ELF class: ELFCLASS64" indicates that it's a 64 bit binary and you may be on a 32-bit only OS, though you say 64-bit Ubuntu. I'll try this in just a moment.

Top
  • Login or register to post comments
Wed, 01/11/2012 - 23:19
ingenthr
Offline
Joined: 03/16/2010
Groups:

Just to triple check, what does file /bin/ls say?

Top
  • Login or register to post comments
Thu, 01/12/2012 - 00:29
ashishtiwari19
Offline
Joined: 12/26/2011
Groups: None

bin dev lib media opt sbin srv usr
boot etc lib32 mnt proc selinux sys var
build home lib64 nonexistent root Softwares tmp

I was not able to compile it with 64 bit support. the service is running, but when I include memcached.so file in my php.ini with correct path, and restart apache server, I get this error.

I have installed 32 bit compatibility libraries on 64 bit os

Top
  • Login or register to post comments
Fri, 09/07/2012 - 05:27
devaraj017
Offline
Joined: 09/07/2012
Groups: None

Hi every one, im facing the same error. i.e

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/couchbase.so' - /usr/lib/php5/20090626+lfs/couchbase.so: wrong ELF class: ELFCLASS64 in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/couchbase.so' - /usr/lib/php5/20090626+lfs/couchbase.so: wrong ELF class: ELFCLASS64 in Unknown on line 0
PHP Fatal error: Class 'Couchbase' not found in /var/www/Test/couchbase/call.php on line 2
PHP Stack trace:
PHP 1. {main}() /var/www/Test/couchbase/call.php:0

Im using ubuntu 12.04 & couchbase 1.8... Did anyone suggest me wherer i did the mistake???

Thanks in advance.

Top
  • Login or register to post comments
Sat, 11/17/2012 - 20:04
abritez
Offline
Joined: 11/17/2012
Groups: None

I believe i am having a similar issue using OSX 10.7.5

PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/couchbase.so' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/couchbase.so, 9): no suitable image found. Did find:\n\t/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/couchbase.so: mach-o, but wrong architecture in Unknown on line 0

Top
  • Login or register to post comments
Sun, 11/18/2012 - 00:42
ingenthr
Offline
Joined: 03/16/2010
Groups:

The output there says wrong architecture. Is your php binary and/or apache 64-bit? Run "file (php bin)" to check.

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