Cloud Foundry - 在 Ruby 1.9.3 上使用较旧的 VMC - 错误:"Can't convert hash into string"



我最近在Win7 PC上安装了Ruby 1.9.3。然后我安装了最新版本的VMC,它似乎运行得很好。然而,有人建议我卸载那个版本,因为它在我的环境中无法正常工作,而是安装0.3.21。

我已经这样做了,但现在基本上我输入的每个VMC命令都会出现以下错误。我试过重新安装Ruby、Sinatra和VMC,但仍然会出现同样的错误。有什么想法吗?

C:$eclipseTestProjectRuby>vmc -v
can't convert Hash into String
C:/Ruby193/lib/ruby/gems/1.9.1/gems/vmc-0.3.21/lib/cli/commands/base.rb:60:in `expand_path'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/vmc-0.3.21/lib/cli/commands/base.rb:60:in `block in load_manifest_structure'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/vmc-0.3.21/lib/cli/commands/base.rb:59:in `each'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/vmc-0.3.21/lib/cli/commands/base.rb:59:in `load_manifest_structure'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/vmc-0.3.21/lib/cli/commands/base.rb:81:in `load_manifest'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/vmc-0.3.21/lib/cli/commands/base.rb:28:in `initialize'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/vmc-0.3.21/lib/cli/runner.rb:465:in `new'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/vmc-0.3.21/lib/cli/runner.rb:465:in `run'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/vmc-0.3.21/lib/cli/runner.rb:14:in `run'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/vmc-0.3.21/bin/vmc:5:in `<top (required)>'
C:/Ruby193/bin/vmc:23:in `load'
C:/Ruby193/bin/vmc:23:in 'main'

为什么建议您卸载最新版本?可能存在gem依赖性问题,但这些问题已经得到解决。

相关内容

  • 没有找到相关文章

最新更新