0

我正在使用此说明安装 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
4

1 回答 1

2

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

gem install rest-client

你应该好好去!

于 2012-12-05T13:47:14.163 回答