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?
我可以在Mac上安装。它如何在Ubuntu上安装? – msfk
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