我正在尝试使用capifony部署工具来部署基于Symfony2的项目。在Ubuntu 14.04上一切正常。我的登台服务器是CentOS,这是我在那里看到的错误:
[user @ apache2 Symfony] $ cap -vT
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require': /usr/lib/ruby/gems/1.8/gems/inifile-3.0.0/lib/inifile.rb:558: undefined (?...) sequence: /\A"(.*)(?<!\\)"\z/ (SyntaxError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require'
来自/usr/lib/ruby/gems/1.8/gems/capifony-2.8.1/lib/capifony_symfony2.rb:6
来自/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
require'
来自/usr/lib/ruby/gems/1.8/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:152:in require'
from Capfile:3:in
load'
来自/usr/lib/ruby/gems/1.8/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:180:in load_from_file'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:89:in
load'
来自/usr/lib/ruby/gems/1.8/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:86:in load'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:86:in
每个'
来自/usr/lib/ruby/gems/1.8/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:86:in load'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:65:in
load_recipes'
来自/usr/lib/ruby/gems/1.8/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:65:in each'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:65:in
load_recipes'
来自/usr/lib/ruby/gems/1.8/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:31:in execute!'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.15.5/lib/capistrano/cli/execute.rb:14:in
执行'
来自/usr/lib/ruby/gems/1.8/gems/capistrano-2.15.5/bin/cap:4
来自/ usr / bin / cap:19:在'load'中
来自/ usr / bin / cap:19
我该怎么办?请注意,我对Ruby不太了解。
答案 0 :(得分:1)
卸载inifile 3.0.0并安装2.0.2
(注意:现在依赖于 2.0.2 版本)
gem uninstall inifile
gem install inifile -v 2.0.2
答案 1 :(得分:0)
我已经卸载了inifile 3.0.0并安装了inifile 2.0.0,之后这个错误消失了。