Unable to install couchbase gem v. 1.3.5 on windows 7


#1

Environment - Windows 7 Professional (64), Ruby 1.9.3 p.484

gem install couchbase

Fetching: yaji-0.3.5-x86-mingw32.gem (100%)
Successfully installed yaji-0.3.5-x86-mingw32
Fetching: connection_pool-1.2.0.gem (100%)
Successfully installed connection_pool-1.2.0
Fetching: couchbase-1.3.5.gem (100%)
Temporarily enhancing PATH to include DevKit…
Building native extensions. This could take a while…
ERROR: Error installing couchbase:
ERROR: Failed to build gem native extension.

C:/Ruby193/bin/ruby.exe extconf.rb


Downloaded couchbase-1.3.5-x86-mingw32.gem localy

gem install --local C:\Users\aso\Downloads\couchbase-1.3.5-x86-mingw32.gem

Successfully installed couchbase-1.3.5-x86-mingw32
Installing ri documentation for couchbase-1.3.5-x86-mingw32
1 gem installed

in the script

require ‘couchbase’

C:\Ruby193\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Users/aso/ruby_try/couchbase_try.rb
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:73:in require': 126: The specified module could not be found. - C:/Ruby193/lib/ruby/gems/1.9.1/gems/couchbase-1.3.5-x86-mingw32/lib/couchbase/1.9/couchbase_ext.so (LoadError) from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:73:inrequire’
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/couchbase-1.3.5-x86-mingw32/lib/couchbase_ext.rb:1:in <top (required)>' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:73:inrequire’
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:73:in require' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/couchbase-1.3.5-x86-mingw32/lib/couchbase.rb:22:in<top (required)>'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:in require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:135:inrescue in require’
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:144:in require' from C:/Users/aso/ruby_try/couchbase_try.rb:1:in<top (required)>‘
from -e:1:in `load’


#2

Does it show popup like this in your case?


#3

Could you try this build?

http://files.avsej.net/couchbase-1.3.5.winfix-x86-mingw32.gem

It is the same as 1.3.5 but with static libgcc


#4

same error :

gem install C:\Users\aso\Downloads\couchbase-1.3.5.winfix-x86-mingw32.gem

Successfully installed couchbase-1.3.5.winfix-x86-mingw32

gem list

*** LOCAL GEMS ***

bigdecimal (1.1.0)
bundler (1.5.3)
connection_pool (1.2.0)
couchbase (1.3.5.winfix x86-mingw32)
io-console (0.3)
json (1.5.5)
jsonpath (0.5.6)
minitest (2.5.1)
multi_json (1.8.4)
rake (0.9.2.2)
rdoc (3.9.5)
rubygems-update (2.2.2)
yaji (0.3.5 x86-mingw32)

in the script

require ‘couchbase’

C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require’: 126: The specified module could not be found. - C:/Ruby193/lib/ruby/gems/1.9.1/gems/couchbase-1.3.5.winfix-x86-mingw32/lib/couchbase/1.9/couchbase_ext.so (LoadError)


#5

Could you try once again, please? I have updated the link above


#6

It worked this time. Thanks for your help.


#7

This fix for Windows solve the problem but… with the ‘couchbase-model’ gem, I think, there are a problem.

I’m trying to run: rails generate couchbase:config

but an error shows appears:

F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/couchbase-model-0.5.3/lib/couchbase/model.rb:20:in require': cannot load such file -- couchbase (LoadError) from F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/couchbase-model-0.5.3/lib/couchbase/model.rb:20:in<top (required)>'
from F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/couchbase-model-0.5.3/lib/couchbase-model.rb:18:in require' from F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/couchbase-model-0.5.3/lib/couchbase-model.rb:18:in<top (required)>'
from F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.6.0.pre.2/lib/bundler/runtime.rb:76:in require' from F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.6.0.pre.2/lib/bundler/runtime.rb:76:inblock (2 levels) in require’
from F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.6.0.pre.2/lib/bundler/runtime.rb:72:in each' from F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.6.0.pre.2/lib/bundler/runtime.rb:72:inblock in require’
from F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.6.0.pre.2/lib/bundler/runtime.rb:61:in each' from F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.6.0.pre.2/lib/bundler/runtime.rb:61:inrequire’
from F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.6.0.pre.2/lib/bundler.rb:132:in require' from F:/proyectos/src/doudo/config/application.rb:13:in<top (required)>'
from F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.16/lib/rails/commands.rb:24:in require' from F:/devel/RoR/compiler/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.16/lib/rails/commands.rb:24:in<top (required)>'
from script/rails:6:in require' from script/rails:6:in

Any ideas or suggestions? thanks you.


#9

I will push the fixed version by the monday. Thanks for reporting it


#10

Any updates on this?


#11

Could you check with couchbase-1.3.15?


#12

Hi. The issue has now been resolved after escalating to the support team. Thanks for looking into this.