我的rhc setup命令不能用于openshift安装,我已经重新检查了所有ruby,rubygems和git版本,所有这些都显示了我的最新版本
chikin @ chikin-VirtualBox:〜$ sudo apt-get install ruby-full
chikin的[sudo]密码:
阅读包裹清单......完成
建立依赖树
阅读国家信息......完成
ruby-full已经是最新版本了。
0升级,0新安装,0删除,275未升级。
chikin @ chikin-VirtualBox:〜$ sudo apt-get install rubygems
阅读包裹清单......完成
建立依赖树
阅读国家信息......完成
rubygems已经是最新版本了。
0升级,0新安装,0删除,275未升级。
chikin @ chikin-VirtualBox:〜$ sudo apt-get install git-core
阅读包裹清单......完成
建立依赖树
阅读国家信息......完成
git-core已经是最新版本了。
如果这是您第一次安装RHC工具,请运行' rhc setup'
=============================================== ============================
已成功安装rhc-1.35.1
安装1个宝石
安装rhc-1.35.1的ri文档......
安装rhc-1.35.1的RDoc文档......
chikin @ chikin-VirtualBox:〜$ rhc setup
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require': /var/lib/gems/1.8/gems/commander-4.3.0/lib/commander/user_interaction.rb:236: syntax error, unexpected '.', expecting kEND (SyntaxError)
.compact
^
/var/lib/gems/1.8/gems/commander-4.3.0/lib/commander/user_interaction.rb:462: odd number list for Hash
title: @title,
^
/var/lib/gems/1.8/gems/commander-4.3.0/lib/commander/user_interaction.rb:462: syntax error, unexpected ':', expecting '}'
title: @title,
^
/var/lib/gems/1.8/gems/commander-4.3.0/lib/commander/user_interaction.rb:463: syntax error, unexpected ':', expecting '='
percent_complete: percent_complete,
^
/var/lib/gems/1.8/gems/commander-4.3.0/lib/commander/user_interaction.rb:464: syntax error, unexpected ':', expecting '='
progress_bar: progress_bar,
^
/var/lib/gems/1.8/gems/commander-4.3.0/lib/commander/user_interaction.rb:465: syntax error, unexpected ':', expecting '='
step: @step,
^
/var/lib/gems/1.8/gems/commander-4.3.0/lib/commander/user_interaction.rb:466: syntax error, unexpected ':', expecting '='
steps_remaining: steps_remaining,
^
/var/lib/gems/1.8/gems/commander-4.3.0/lib/commander/user_interaction.rb:467: syntax error, unexpected ':', expecting '='
total_steps: @total_steps,
^
/var/lib/gems/1.8/gems/commander-4.3.0/lib/commander/user_interaction.rb:468: syntax error, unexpected ':', expecting '='
time_elapsed: '%0.2fs' % time_elapsed,
^
/var/lib/gems/1.8/gems/commander-4.3.0/lib/commander/user_interaction.rb:468: syntax error, unexpected ',', expecting kEND
/var/lib/gems/1.8/gems/commander-4.3.0/lib/commander/user_interaction.rb:470: syntax error, unexpected '}', expecting kEND
}.merge! @tokens
^
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
要求'
来自/var/lib/gems/1.8/gems/commander-4.3.0/lib/commander.rb:27
来自/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
要求'
来自/var/lib/gems/1.8/gems/rhc-1.35.1/lib/rhc.rb:30
来自/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
要求'
来自/var/lib/gems/1.8/gems/rhc-1.35.1/lib/rhc/cli.rb:1
来自/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
要求'
来自/var/lib/gems/1.8/gems/rhc-1.35.1/bin/rhc:18
来自/ usr / local / bin / rhc:19:在'load'
来自/ usr / local / bin / rhc:19
答案 0 :(得分:0)
您需要使用更新版本的ruby。至少尝试1.9.3,它支持新的符号语法。
symbol: "value"
而不是
:symbol => "value"