My environment:
Windows 7 64bits
Ruby 1.9.3
Rails 3.2
Steps:
Create new app:
rails new couchbase_example -O
Add to Gemfile:
gem 'couchbase'
gem 'couchbase-model'
run:
bundle install
The gem are installed correctly:
couchbase (1.3.5 x86-mingw32)
couchbase-model (0.5.3)
Now, I want generate couchbase.yml:
Rails generate couchbase:config
But something went wrong… if I run server (rails s) the same error too:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/couchbase-1.3.5-x86-mingw32/lib/couchbase_ext.rb:1:in `require': 126: can not find the specified module
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/couchbase-1.3.5-x86-mingw32/lib/couchbase/1.9/couchbase_ext.so (LoadError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/couchbase-1.3.5-x86- mingw32/lib/couchbase_ext.rb:1:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/couchbase-1.3.5-x86-mingw32/lib/couchbase.rb:22:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/couchbase-1.3.5-x86-mingw32/lib/couchbase.rb:22:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from C:/Users/David/Desktop/ejemplocb/config/application.rb:12:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/commands.rb:43:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/commands.rb:43:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I have been trying on differents machines but always the same error…