Library search paths are done first in /usr/local and then in /usr/lib. Please 
remove the self-compiled versions of the library. Maybe there’s a symlink 
somewhere, or you’re still loading an older version of the extension.

So, just to make sure everything happens with a fresh start:

Remove any ‘couchbase.so’ from your PHP directories
Remove your self-compiled libcouchbase (`make uninstall` might help if you 
still have the source tree, otherwise rm /usr/local/lib/libcouchbase* and 
/usr/local/include/libcouchbase/).
Ensure the only libcouchbase remains is the one installed via the binary (— 
note, you can build from source too, but first get it working “normally”). You 
can check this by running the `cbc` tool, e.g. `cbc version (should tell you 
the version you’re using; 2.4.x) and ldd $(which cbc) should show you what it’s 
linked against.
Finally recompile your couchbase.so module and place it in the correct 
directory (usually a simple ‘make install’ should do).

> On Apr 17, 2015, at 12:58 PM, André Jacques <[email protected]> wrote:
> 
> Well, this is interesting.
> 
> I drop my couchbase.so file from PHP, because when I use locate there is no 
> libcouchbase.so.1 to be found (as it says) : libcouchbase.so, 
> libcouchbase.so.2 and libcouchbase.so.2.0.23 are indeed present (in 
> /usr/lib/x86_64-linux-gnu/ and /usr/local/lib.
> 
> Do I did 
> 
> shell> wget http://packages.couchbase.com/clients/c/couchbase-csdk-setup
> shell> sudo perl couchbase-csdk-setup
> 
> It said at the end You should add "extension=couchbase.so" to php.ini, so in 
> /etc/php5/mods-available, I have a couchbase.ini file, with this exact line. 
> This file is also available in /etc/php5/apache2/conf.d/20-couchbase.ini 
> (it's a symlink).
> 
> Here is what I get :
> php -v
> PHP Warning:  Module 'couchbase' already loaded in Unknown on line 0
> 
> but the surprise is :
> php -m
> PHP Warning:  Module 'couchbase' already loaded in Unknown on line 0
> Segmentation fault
> 
> Is it possible that my libcouchbase has compilation problem?
> 
> On Friday, April 17, 2015 at 3:29:53 PM UTC-4, M. Nunberg wrote:
> The error indicates that it couldn’t find the libcouchbase library.
> 
> I recommend you first try to download the binary package for Debian — either 
> your package manager, or manually. Please see here for more details 
> http://docs.couchbase.com/developer/c-2.4/download-install.html 
> <http://docs.couchbase.com/developer/c-2.4/download-install.html>
> 
> It seems your php extension is trying to link against libcouchbase.so.1 — 
> which seems a bit odd considering that the soversion of the library is 2 
> (libcouchbase.so.2). Maybe you have a leftover from a previous install?
> 
>> On Apr 17, 2015, at 12:15 PM, André Jacques <[email protected] 
>> <javascript:>> wrote:
>> 
>> Hi,
>> 
>>  My setup : Debian 7.7 (Linux herpderp.ca <http://herpderp.ca/> 
>> 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux), PHP 5.4.36
>> 
>>  I tried to install the PHP SKD in my Debian VM, install libevent-dev, 
>> compile libcouchbase and php-couchbase too. When I try to instantiate a 
>> Couchbase class, PHP tells me it doesn't exists. Couchbase module is nowhere 
>> to be found in php -m and php -v return this error, twice :
>> 
>> PHP Warning:  PHP Startup: Unable to load dynamic library 
>> '/usr/lib/php5/20100525/couchbase.so' - libcouchbase.so.1: cannot open 
>> shared object file: No such file or directory in Unknown on line 0
>> 
>>  I moved my couchbase.so file in /usr/lib/php5/20100525/ and set mode 
>> without x (like all the other so file in this folder). Any idea?
>> 
>> A. Jacques
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Couchbase" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Couchbase" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to