我正在关注ubuntu openshift client tools。我刚刚在rhcloud上创建了一个应用程序,我正在尝试安装客户端工具以在rhcloud上安装我的代码。我收到以下错误
viju@viju:~$ 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 `require' from /var/lib/gems/1.8/gems/commander-4.3.0/lib/commander.rb:27 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/rhc-1.34.2/lib/rhc.rb:30 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/rhc-1.34.2/lib/rhc/cli.rb:1 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/rhc-1.34.2/bin/rhc:18 from /usr/local/bin/rhc:19:in `load' from /usr/local/bin/rhc:19
有人可以告诉我究竟缺少什么,为什么会出现语法错误或者至少有一个指针让我在rhcloud上安装应用程序。
答案 0 :(得分:1)
您遇到的错误似乎是因为您使用的旧版本的ruby不支持新语法,如
symbol: "value"
尝试升级到更新版本的ruby,至少1.9.3