使用MongoDB的Rails - Bundle Update出错

时间:2013-11-19 19:59:07

标签: ruby-on-rails ruby mongodb gem bundle

我在CentOS vps上安装了mongodb和rails。

rails new myapp --skip-active-record

在我的Gemfile中,我有:

gem 'mongoid', github: 'mongoid/mongoid'
gem 'bson_ext', '~> 1.8.6'

然后我跑了:

bundle install

但是我收到了一条错误消息:

/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:172:in `security_policies': uninitialized constant Gem::Security::Policies (NameError)
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/cli.rb:175:in `<class:CLI>'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/cli.rb:6:in `<module:Bundler>'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/cli.rb:5:in `<top (required)>'
        from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/bin/bundle:18:in `<top (required)>'
        from /usr/local/bin/bundle:23:in `load'
        from /usr/local/bin/bundle:23:in `<main>'

我该如何解决这个问题?感谢..

0 个答案:

没有答案