Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

PHP-ext-couchbase 1.1.0-dp5 - failed to create IO Instance - CentOS 5.4

4 replies [Last post]
  • Login or register to post comments
Fri, 10/26/2012 - 11:11
bpienig
Offline
Joined: 04/29/2011
Groups: None

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

Top
  • Login or register to post comments
Fri, 10/26/2012 - 23:38
PaulB
Offline
Joined: 10/19/2012
Groups: None

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

Top
  • Login or register to post comments
Sun, 10/28/2012 - 17:08
ingenthr
Offline
Joined: 03/16/2010
Groups:

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.

Top
  • Login or register to post comments
Tue, 10/30/2012 - 12:27
bpienig
Offline
Joined: 04/29/2011
Groups: None

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

Top
  • Login or register to post comments
Mon, 11/12/2012 - 09:46
parseNothing
Offline
Joined: 11/12/2012
Groups: None

Try to install libcouchbase2-libevent packages:
yum install libcouchbase2-libevent
It may be useful.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker