Ruby Mac Yosemite上的Couchbase宝石

Ruby Mac Yosemite上的Couchbase宝石,ruby,gem,couchbase,osx-yosemite,Ruby,Gem,Couchbase,Osx Yosemite,我已经使用自制软件安装了libcouchbase,并按照这些说明从源代码进行构建,但仍然出现错误 Building native extensions. This could take a while... ERROR: Error installing couchbase: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/

我已经使用自制软件安装了libcouchbase,并按照这些说明从源代码进行构建,但仍然出现错误

Building native extensions.  This could take a while...
ERROR:  Error installing couchbase:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
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.

我使用的是ruby 2.0,根据错误消息判断,您似乎需要最新版本的libcouchbase。确保首先执行
brew更新
,以便brew知道最新版本

mnunberg@mbp15 ~ $ cbc version
cbc:
  Runtime: Version=2.4.6, Changeset=803c3c79cd72455aa62ab39eaf7a597e5d6de7e5
  Headers: Version=2.4.6, Changeset=803c3c79cd72455aa62ab39eaf7a597e5d6de7e5
  IO: Default=libevent, Current=libevent
  SSL: .. SUPPORTED