PHP sdk issues at startup
Hi everyone, I just installed a fresh copy of CentOS 6.3 64bits and installed Couchbase server 2.0
After installing several libs (crypto, ssl, etc) I was able to run Couchbase and access it from the web console.
I've downloaded the php sdk from http://www.couchbase.com/develop/php/current for CentOS 6.2 -I assume it works on 6.3- from http://packages.couchbase.com/clients/php/php-ext-couchbase-1.1.2-centos..., uncompressed it, copied the couchbase.so extension to the php extensions, and added the line to the php.ini in order to be loaded.
I ran php -i but I got an error message about libcouchbase.so.2 was not found, after some digging I came up to:
cloned the git repo, compiled and installed it.
Now, I can start/restart apache without any issue, but when I execute "php -i" in order to check if Couchbase sdk is loaded I get the following error:
Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/couchbase.so' - libcouchbase.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
I've tried to symlink and even copy the libcouchbase.* files to /usr/lib64/php/modules/ and even added /usr/local/lib/ to the include_path in php.ini, nothing of this raised a different error message.
I don't have to say that I'm lost due to the error message that doesn't points me to any direction, and I wasn't able to find the same issue on google or forums.
Can someone point me out what to try next?
Yeah, we certainly have a way to go in order to make it easier for people to use our clients. Part of the problem is that there is so many different operating systems out there so it is quite some work left to make it easy for all of them. From looking at http://www.couchbase.com/develop/php/current I noticed that the first step is to go install libcouchbase with a link to http://www.couchbase.com/develop/c/current which does contain a fair amount of information on how to install it on different OS's. This list should probably be extended with more platforms.