martes, 11 de febrero de 2014

fatal error: libcouchbase/couchbase.h: No such file or directory

Installing couchbase library from php I found this little fatal error:

fatal error: libcouchbase/couchbase.h: No such file or directory

This is because the C library not was installed properly. Just run:

sudo wget -O /etc/apt/sources.list.d/couchbase.list packages.couchbase.com/ubuntu/couchbase-ubuntu1204.list 
wget -O- packages.couchbase.com/ubuntu/couchbase.key | sudo apt-key add - 
sudo apt-get update 
sudo apt-get install libcouchbase2 libcouchbase-dev

and then:

sudo apt-get install php-pear 
sudo pecl install couchbase 
sudo apt-get install build-essential
Update php.ini with extension=couchbase.so and restart apache.

No hay comentarios:

Publicar un comentario