安装caldecott后vmc无法正常工作

时间:2012-12-05 10:51:48

标签: ruby cloudfoundry

我使用此说明安装caldecott http://docs.cloudfoundry.com/tools/vmc/caldecott.html,但在vmc无效之后:

/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- restclient (LoadError)
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.8/gems/tunnel-vmc-plugin-0.1.9/lib/tunnel-vmc-plugin/tunnel.rb:2
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.8/gems/tunnel-vmc-plugin-0.1.9/lib/tunnel-vmc-plugin/plugin.rb:2
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:59:in `gem_original_require'
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:59:in `require'
    from /var/lib/gems/1.8/gems/vmc-0.4.2/lib/vmc/plugin.rb:43:in `load_all'
    from /usr/lib/ruby/1.8/set.rb:194:in `each'
    from /usr/lib/ruby/1.8/set.rb:194:in `each_key'
    from /usr/lib/ruby/1.8/set.rb:194:in `each'
    from /var/lib/gems/1.8/gems/vmc-0.4.2/lib/vmc/plugin.rb:42:in `load_all'
    from /var/lib/gems/1.8/gems/vmc-0.4.2/bin/vmc:9
    from /usr/local/bin/vmc:19:in `load'
    from /usr/local/bin/vmc:19

我该如何解决?

重现:

1. sudo gem install caldecott --no-rdoc --no-ri
2. sudo gem install tunnel-vmc-plugin

1 个答案:

答案 0 :(得分:2)

由于vmc 0.4是新版本,因此在线文档有点过时了。你真正需要做的是安装rest-client,虽然这应该是对tunnel-vmc-plugin的依赖!

gem install rest-client

你应该好好去!