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
>
> 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 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.
>
>
>

-- 
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