如何在mac上安装libcouchbase-1.1.0.dp8?

时间:2012-11-07 07:18:46

标签: couchbase

我正在尝试安装gem couchbase-1.2.0.dp6.gem。但是在安装它时会要求libcouchbase-1.1.0dp8。

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

    /Users/ms/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for libcouchbase_get_num_replicas() in -lcouchbase... no
You should install libcouchbase >= 1.1.0dp8. See http://www.couchbase.com/develop/ 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:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/mohammad.salim/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
--with-libcouchbase-dir
--without-libcouchbase-dir
--with-libcouchbase-include
--without-libcouchbase-include=${libcouchbase-dir}/include
--with-libcouchbase-lib
--without-libcouchbase-lib=${libcouchbase-dir}/lib
--with-couchbaselib
--without-couchbaselib


Gem files will remain installed in /Users/ms/.rvm/gems/ruby-1.9.3-p194/gems/couchbase-1.2.0.dp6 for inspection.
Results logged to /Users/ms/.rvm/gems/ruby-1.9.3-p194/gems/couchbase-1.2.0.dp6/ext/couchbase_ext/gem_make.out

我已经安装了libcouchbase-1.1.0dp4。但是如何安装1.1.0dp8?

1 个答案:

答案 0 :(得分:3)

当您使用边缘版本时,我建议您使用以下方法安装它们:

对于libcouchbase(最新版本是2.0.0beta3)

$ brew install https://github.com/couchbase/homebrew/raw/preview/Library/Formula/libcouchbase.rb

对于红宝石宝石(最近的是1.2.0.z.beta4)

$ gem install couchbase --pre