2

我正在尝试安装 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?

4

1 回答 1

3

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

对于 libcouchbase(最新的是 2.0.0beta3)

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

对于 ruby​​ gem(最新的是 1.2.0.z.beta4)

$ gem install couchbase --pre
于 2012-11-21T20:55:14.543 回答