Rails 3.2.9 捆绑器错误



我正在用rails做简单的hello world项目,但似乎它向我抛出了捆绑器错误。我想看看如何删除我输入后出现的捆绑器错误

   rails new helloproject

控制台中的错误包括:

 /var/lib/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:271:in `<class:Path>':   uninitialized constant Bundler::GemInstaller (NameError)
   /var/lib/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:270:in `<module:Source>'
   /var/lib/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:10:in `<module:Bundler>'
   /var/lib/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/source.rb:9:in `<top (required)>'
   /var/lib/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/dsl.rb:21:in `initialize'
   /var/lib/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/dsl.rb:6:in `new'
   /var/lib/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/dsl.rb:6:in `evaluate'
   /var/lib/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/definition.rb:18:in `build'
   /usr/lib/ruby/vendor_ruby/bundler.rb:136:in `definition'
   /usr/lib/ruby/vendor_ruby/bundler/cli.rb:222:in `install'
   /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/task.rb:22:in `run'
   /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
   /usr/lib/ruby/vendor_ruby/bundler/vendor/thor.rb:246:in `dispatch'
   /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/base.rb:389:in `start'
   /var/lib/gems/1.9.1/gems/bundler-1.2.3/bin/bundle:14:in `block in <main>'
   /var/lib/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
   /var/lib/gems/1.9.1/gems/bundler-1.2.3/bin/bundle:14:in `<main>'
   There was an error in your Gemfile, and Bundler cannot continue.

我想知道如何克服此错误并正确捆绑应用程序?

我确实设法运行服务器并运行hello world应用程序,但是每个新项目似乎都会抛出此捆绑器错误。

我已经检查过类似的问题,但这似乎是错误的独特类型。

如何摆脱这些捆绑器安装错误?

检查以下步骤,

gem install bundler
and after adding:
gem 'bundler'

config/boot.rb的第 2 行(紧接着需要 'rubygems'

如果没有解决,请告诉我。

相关内容

  • 没有找到相关文章

最新更新