2013-12-17 74 views
0

我想在我的rails項目中使用Mongoid,但gem 'mongoid'安裝版本1.0.6。我試着用gem 'mongoid', github: 'mongoid/mongoid',但運行bundle install與產生此錯誤:使用Mongoid和Rails 4

Fetching git://github.com/mongoid/mongoid.git 
Unfortunately, a fatal error has occurred. Please see the Bundler 
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! 
C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/source/git/git_proxy.rb:88:in ``': No such file or directo 
ry - git clone "git://github.com/mongoid/mongoid.git" "C:/Ruby200/lib/ruby/gems/2.0.0/cache/bundler/git/mongoid-176c799a 
8a4589043b073e277e545d697119fa82" --bare --no-hardlinks (Errno::ENOENT) 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/source/git/git_proxy.rb:88:in `git' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/source/git/git_proxy.rb:49:in `checkout' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/source/git.rb:144:in `specs' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:493:in `block in converge_locke 
d_specs' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:482:in `each' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:482:in `converge_locked_specs' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:167:in `resolve' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:109:in `resolve_remotely!' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/installer.rb:83:in `run' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/installer.rb:14:in `install' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/cli.rb:247:in `install' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in `run' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task 
' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in `dispatch' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in `start' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/bin/bundle:20:in `block in <top (required)>' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in `with_friendly_errors 
' 
     from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/bin/bundle:20:in `<top (required)>' 
     from C:/Ruby200/bin/bundle:23:in `load' 
     from C:/Ruby200/bin/bundle:23:in `<main>' 

回答

0

嘗試gem install mongoid它應該讓你安裝mongoid寶石的情況下直接通過捆綁去

之後再次嘗試運行bundle

+0

不,仍安裝版本1.0.6,它是3歲 – August