PHP-ext-couchbase 1.1.0-dp5 - failed to create IO Instance - CentOS 5.4
I'm am having a problem running php-ext-couchbase 1.1.0-dp5...
Specifications
- CentOS release 5.4 (Final)
- PHP 5.3.18
Here is what I did to install 1.1 on CentOS 5.4...
----------
# You need to install libev
wget http://dl.fedoraproject.org/pub/epel/5/x86_64/libev-4.03-2.el5.x86_64.rpm
rpm -Uvh libev-4.03-2.el5.x86_64.rpm
# You need to install the preview couchbase repo
wget -O/etc/yum.repos.d/couchbase.repo http://packages.couchbase.com/preview/rpm/couchbase-centos55-x86_64.repo
yum check-update
# You need to install lib couchbase
yum -y install libcouchbase-devel
# You need to get the latest 1.1.0-dp5 code
wget http://packages.couchbase.com/clients/php/php-ext-couchbase-1.1.0-dp5-ce...
# Untar and copy over the couchbase.so
tar -zxvmpf php-ext-couchbase-1.1.0-dp5-centos55-x86_64.tar.gz
cp php-ext-couchbase/couchbase.so /usr/lib64/php/modules/couchbase.so
# Append extension=couchbase.so to end of /etc/php.d/json.ini
echo extension=couchbase.so >> /etc/php.d/json.ini
----------
Within membasetest.php I used the example code... xxxxxxxxxx is our couchbase 1.8.1 cluster host name
----------
<?php
// adjust these parameters to match your installation
// this example is for the default bucket, the third argument is the password
$cb = new Couchbase("xxxxxxxxxx:8091", "default", "", "default" );
$cb->set("a", 1);
var_dump($cb->get("a"));
?>
----------
When I run php -f membasetest.php
----------
PHP Warning: Couchbase::__construct(): failed to create IO instance in membasetest.php on line 4
PHP Warning: Couchbase::set(): unintilized couchbase in membasetest.php on line 5
PHP Warning: Couchbase::get(): unintilized couchbase in membasetest.php on line 6
bool(false)
----------
Can anyone please help me out with this problem?
Ben
I think it's caused by a package change problem not being compatible with Amazon Linux. Can you try one of the listed supported OSs? Centos 5.6 and later or Centos 6.2 and later.
I'm stuck using CentOS 5.4 as that this the current distro being used for our application server layer.
Any OS Changes or upgrades would be a significant change to our application layer.
Ben
Try to install libcouchbase2-libevent packages:
yum install libcouchbase2-libevent
It may be useful.
Same issue here using latest Amazon basic linux 64 bit. I have put reported an issue, sorry if it's not that great it's my first one <3
http://www.couchbase.com/issues/browse/PCBC-138