I got the following error when ‘gem install couchbase’:
Building native extensions. This could take a while…
ERROR: Error installing couchbase:
ERROR: Failed to build gem native extension.
checking for lcb_iops_wire_bsd_impl2(NULL, 0) in -lcouchbase… no
- You must install libcouchbase >= 2.4.0
- See http://www.couchbase.com/communities/c/ for more details
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
extconf failed, exit code 1
But I already have installed libcouchbase on my machine using ‘brew.’
$brew install libcouchbase
Warning: libcouchbase-2.4.3 already installed
So I try manually building libcouchbase.
$ git clone git://github.com/couchbase/libcouchbase.git
$ cd libcouchbase && mkdir build && cd build
Actually, I needed this cause I need to use libcouchbase >= 2.4.4 because of https://issues.couchbase.com/browse/CCBC-546. But it seems like brew only install 2.4.3.
ctest passed, but I still can’t ‘gem install couchbase’.
It seems like I need to use one of the configuration options.
Could anyone help me with example script?
P.S. It would be great if…
- Brew is updated.
- If guide links on github are updated. (The links are mis-directing to wrong pages.) Such as ‘installation page’ link from https://github.com/couchbase/libcouchbase.
- A little more detail about how to install couchbase client library.