2012-11-07 79 views
2

我正在尝试安装gem couchbase-1.2.0.dp6.gem。但是在安装时要求libcouchbase-1.1.0dp8。如何在mac上安装libcouchbase-1.1.0.dp8?

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?

回答

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 
+0

我可以在Mac上安装。它如何在Ubuntu上安装? – msfk

+2

sudo wget -O/etc/apt/sources.list.d/couchbase.list http://packages.couchbase.com/preview/ubuntu/couchbase-ubuntu1110.list; wget -O- http://packages.couchbase.com/ubuntu/couchbase.key | sudo apt-key add - ; sudo apt-get update; sudo apt-get install libcouchbase2 libcouchbase-dev – avsej