/var/lib/hudson/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:900:in `report_activate_error': Could not find RubyGem warbler (>= 0) (Gem::LoadError)
from /var/lib/hudson/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:248:in `activate'
from /var/lib/hudson/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:1276:in `gem'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-p180/bin/warble:18:in `<main>'
这是我得到的错误。我肯定有莺 - 我只有可执行文件“warble”因为我rvm gem install
编辑了warbler。
任何帮助?
编辑:它应该可用:
GEM_HOME: "/var/lib/hudson/.rvm/gems/ruby-1.9.2-p180"
GEM_PATH: "/var/lib/hudson/.rvm/gems/ruby-1.9.2-p180:/var/lib/hudson/.rvm/gems/ruby-1.9.2-p180@global"
/var/lib/hudson/.rvm/gems/ruby-1.9.2-p180/gems
确实包含warbler-1.3.0。我在同一台机器上运行与不同用户相同的安装脚本,它发现没问题。
EDIT2:好的,我在rubygems.rb中使用了一些puts
调试,并且它加载GEM_PATH的部分无法正常工作......即使我的GEM_PATH是由rvm定义的(并且是迂腐的,我已经尝试手动复制它,当运行GEM_PATH出现空白时。有关于此的任何想法吗?