我正在尝试使用 kubuntu 14.04 设置 redmine(本地),并按照说明进行操作来自 redmine.org。从 Kubuntu 存储库安装 redmine 2.4.2 工作正常。然后我也执行了sudo apt-get install bundler
和sudo gem install bundler
。但是然后我应该运行bundle install --without development test
,它失败并显示消息Bundler::GemfileNotFound
。
更具体地说,bundle install --verbose --without development test
给出以下输出
Bundler::GemfileNotFound
Bundler::GemfileNotFound: Bundler::GemfileNotFound
/usr/lib/ruby/vendor_ruby/bundler/settings.rb:16:in `[]='
/usr/lib/ruby/vendor_ruby/bundler/settings.rb:79:in `without='
/usr/lib/ruby/vendor_ruby/bundler/cli.rb:237:in `install'
/usr/lib/ruby/vendor_ruby/thor/command.rb:27:in `run'
/usr/lib/ruby/vendor_ruby/thor/invocation.rb:121:in `invoke_command'
/usr/lib/ruby/vendor_ruby/thor.rb:363:in `dispatch'
/usr/lib/ruby/vendor_ruby/thor/base.rb:440:in `start'
/usr/bin/bundle:20:in `block in <main>'
/usr/lib/ruby/vendor_ruby/bundler/friendly_errors.rb:3:in `with_friendly_errors'
/usr/bin/bundle:20:in `<main>'
那我该怎么办呢?
答案1
找到“Gemfile”的位置。CC 进入该目录并运行
bundle install --without development test