PHP Startup: Unable to load dynamic library memcached.so on Ubuntu
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
Same problem here, but no answers. really had been struggling with this since 2 days
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.
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"
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.
Just to triple check, what does file /bin/ls say?
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
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.
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
The output there says wrong architecture. Is your php binary and/or apache 64-bit? Run "file (php bin)" to check.
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
--