简体   繁体   English

为什么bundle exec puma失败并显示Gemfile语法错误?

[英]Why does bundle exec puma fail with a Gemfile syntax error?

I'm trying to deploy a Rails 4 app with capistrano 3 to Ubuntu 12.04. 我正在尝试将具有Capistrano 3的Rails 4应用程序部署到Ubuntu 12.04。 I'm using the capistrano3-puma gem to handle configuring puma, but when it tries to bundle exec puma I get this error: 我正在使用capistrano3-puma gem处理配置puma,但是当它尝试bundle exec puma时,出现此错误:

Gemfile syntax error: (Bundler::GemfileError)
/srv/photo_album/releases/20140607043918/Gemfile:41: syntax error, unexpected ':', expecting kEND
...sprockets_better_errors', git: 'git@github.com:RobinClowers/...

I'm able bundle exec rails just fine from this machine just fine, so I think there is something else going on. 我可以从这台机器上将bundle exec rails就可以了,所以我认为还有其他事情要做。 That error looks like ruby 1.8 trying to parse 1.9 hash syntax... 该错误看起来像ruby 1.8试图解析1.9哈希语法...

I figured this out. 我想通了。 I accidentally installed puma with the system ruby (which is 1.8.7), and I had not run bundle install yet, so there was no 2.1.1 version install for it to find. 我无意中将puma与系统ruby(即1.8.7)一起安装,并且尚未运行bundle install ,因此没有要查找的2.1.1版本安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Gemfile语法错误:尝试捆绑安装时 - Gemfile syntax error: when trying bundle install 编辑Gemfile,运行捆绑软件安装或捆绑软件更新后出现“ Gemfile语法错误” - “Gemfile syntax error” after editing Gemfile, running bundle install or bundle update 导轨为什么会产生脚手架失效? 消息是将pg添加到gemfile - why does rails generate scaffold fail? message is add pg to gemfile Gemfile语法错误 - Gemfile Syntax Error 捆绑安装-不生产“ gemfile:13:语法错误,意外的keyword_end,期望$ end” - bundle install --without production “gemfile:13: syntax error, unexpected keyword_end, expecting $end” Gemfile中的语法错误(Capistrano) - Syntax Error within Gemfile (Capistrano) rubymine错误:你已经激活了rake 10.0.3,但你的Gemfile需要rake 0.9.6。 使用bundle exec可以解决这个问题 - rubymine error: You have already activated rake 10.0.3, but your Gemfile requires rake 0.9.6. Using bundle exec may solve this 捆绑安装不遵守 Gemfile.lock - bundle install does not respect Gemfile.lock 为什么捆绑安装会在可用的Gemfile中不使用捆绑器的版本? - Why does bundle install not use the version of bundler in Gemfile though its available? 为什么将redis添加到Gemfile中会使用以下命令修复错误:require'redis' - Why does adding redis to Gemfile fix error with: require 'redis'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM