I’m trying to install the php-ext-couchbase on Ubuntu 12 so far without success. I’m getting this error from PHP:
php -m | grep couchbase
Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20100525+lfs/couchbase.so’ - libcouchbase.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
Previously had installed php5-fpm and Nginx and both were working fine and I have other PHP modules running smoothly. Couchbase server is working fine, too.
bellow, I will describe all the steps used trying to install the SDK and dependencies:
First, libcouchbase build from source:
git clone https://github.com/couchbase/libcouchbase.git
Confirmed, and all files (including libcouchbase.so.2 ) are present in:
Then, php-ext-couchbase build from source:
git clone https://github.com/couchbase/php-ext-couchbase.git
Confirmed, and couchbase.so is present in /usr/lib/php5/20100525+lfs/ php extension folder.
After that, the configuration file was set.
Contents of couchbase.ini in /etc/php5/conf.d :
Then, restarted Nginx and PHP-fpm:
sudo /etc/init.d/nginx restart
sudo /etc/init.d/php5-fpm restart
I followed all the instructions and after hours remaking the process, no luck…
Originally’m used to working on Windows and only a few months using linux Ubuntu,
but I’ll have to get used since this is my project development platform from now on.
So, I really appreciate any help, looking forward to begin using Couchbase and PHP.
Thanks in advance!
Linux - Linux abs-965P-DS3 3.5.0-30-generic #51-Ubuntu SMP Tue May 14 18:49:52 UTC 2013 i686
PHP_VERSION : 5.4.6-1ubuntu1.3