我刚刚升级到最新的RVM(1.12.3),我正在尝试安装rvm-capistrano gem。
我已经安装了最新的capistrano, capistrano-ext, and capistrano-colors gems
。
这是我添加到我的Gemfile的行:
gem 'rvm-capistrano'
当我执行'bundle install'
时,我收到以下错误:
===========================================
/home/larry/.rvm/gems/ruby-1.9.3-p125@stuptues/bin/rake 错误:错误:[rake --tasks] rake aborted!
未初始化的常数Capistrano
/home/larry/.rvm/gems/ruby-1.9.3-p125@stuptues/gems/rvm-capistrano-1.0.2/lib/rvm/capistrano.rb:3:in`'
/home/larry/.rvm/gems/ruby-1.9.3-p125@stuptues/gems/bundler-1.1.3/lib/bundler/runtime.rb:74:in `需要'
/home/larry/.rvm/gems/ruby-1.9.3-p125@stuptues/gems/bundler-1.1.3/lib/bundler/runtime.rb:74:in “在需要的地方救援”
/home/larry/.rvm/gems/ruby-1.9.3-p125@stuptues/gems/bundler-1.1.3/lib/bundler/runtime.rb:62:in `block in require'
/home/larry/.rvm/gems/ruby-1.9.3-p125@stuptues/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `每个'
/home/larry/.rvm/gems/ruby-1.9.3-p125@stuptues/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `需要'
/home/larry/.rvm/gems/ruby-1.9.3-p125@stuptues/gems/bundler-1.1.3/lib/bundler.rb:119:in `需要'
/home/larry/RubyMine/StupidTuesday/config/application.rb:7:in`'
/ home / larry / RubyMine / StupidTuesday / Rakefile:4:in`require'
/ home / larry / RubyMine / StupidTuesday / Rakefile:4:in''
=============================================== =
这是新添加的“违规”行
rvm-capistrano/lib/rvm/capistrano.rb
档案:
Capistrano :: Configuration.instance(true).load do
这似乎应该有效。有谁知道为什么不是?
谢谢,
拉里
答案 0 :(得分:0)
只需更新rvm-capistrano gem的版本:
bundle update rvm-capistrano
此问题已经报告并已修复。