Ubuntu - trying to install Python Couchbase lib - "libcouchbase / couchbase.h: no such file or directory"

Everything,

I am trying to install Python Couchbase lib on my Linux server, but it does not work with "libcouchbase / couchbase.h: There is no such file or directory". I also cannot find which package contains the couchbase.h file. How can i fix this?

  ubuntu@ip-172-31-17-167 : ~ $ sudo easy_install couchbase
 Searching for couchbase
 Reading https://pypi.python.org/simple/couchbase/
 Best match: couchbase 1.2.4
 Downloading https://pypi.python.org/packages/source/c/couchbase/couchbase-1.2.4.tar.gz#md5=4a51bf3ac1fa26bcb9433d53ac4ba34b
 Processing couchbase-1.2.4.tar.gz
 Writing /tmp/easy_install-ZF8OtY/couchbase-1.2.4/setup.cfg
 Running couchbase-1.2.4 / setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZF8OtY/couchbase-1.2.4/egg-dist-tmp-Az4Noq
 In file included from src / exceptions.c: 17: 0:
 src / pycbc.h: 25: 36: fatal error: libcouchbase / couchbase.h: No such file or directory
  #include 
                                     ^
 compilation terminated.
 error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
 ubuntu@ip-172-31-17-167 : ~ $ apt-file search couchbase.h
 python-celery-doc: /usr/share/doc/python-celery-doc/html/_modules/celery/backends/couchbase.html
 python-celery-doc: /usr/share/doc/python-celery-doc/html/internals/reference/celery.backends.couchbase.html
+6
source share
2 answers

Try the following: http://docs.couchbase.com/couchbase-sdk-c-2.3/#downloading-the-couchbase-client-library

So, if you have Ubuntu 12.04:

  • sudo wget -O/etc/apt/sources.list.d/couchbase.list http://packages.couchbase.com/ubuntu/couchbase-ubuntu1204.list
  • wget -O- http://packages.couchbase.com/ubuntu/couchbase.key | sudo apt-key add -
  • sudo apt-get update
  • sudo apt-get install libcouchbase2-libevent libcouchbase-dev
+10
source

They actually wrote a perl script to make the installation easier and safer, so you can:

  • wget http://packages.couchbase.com/clients/c/couchbase-csdk-setup
  • sudo perl couchbase-csdk-setup

As explained here .

+1
source

Source: https://habr.com/ru/post/980214/


All Articles