Shinji Kagawa
Shinji Kagawa

Reputation: 3

Rhc setup command error

my rhc setup command not working for openshift installation, i have recheck all the ruby, rubygems and git version, all of them show me the newest version

chikin@chikin-VirtualBox:~$ sudo apt-get install ruby-full [sudo] password for chikin: Reading package lists... Done Building dependency tree
Reading state information... Done ruby-full is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 275 not upgraded.

chikin@chikin-VirtualBox:~$ sudo apt-get install rubygems Reading package lists... Done Building dependency tree
Reading state information... Done rubygems is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 275 not upgraded.

chikin@chikin-VirtualBox:~$ sudo apt-get install git-core Reading package lists... Done Building dependency tree
Reading state information... Done git-core is already the newest version.



the problem come when i try the rhc setup commnad,it show me something i really dont know about it





chikin@chikin-VirtualBox:~$ sudo gem install rhc

If this is your first time installing the RHC tools, please run 'rhc setup'

=========================================================================== Successfully installed rhc-1.35.1 1 gem installed Installing ri documentation for rhc-1.35.1... Installing RDoc documentation for rhc-1.35.1...

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:inrequire' 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:inrequire' from /var/lib/gems/1.8/gems/rhc-1.35.1/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:inrequire' from /var/lib/gems/1.8/gems/rhc-1.35.1/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:inrequire' from /var/lib/gems/1.8/gems/rhc-1.35.1/bin/rhc:18 from /usr/local/bin/rhc:19:in `load' from /usr/local/bin/rhc:19

Upvotes: 0

Views: 475

Answers (1)

user2879327
user2879327

Reputation:

You need to use a newer version of ruby. Try at least 1.9.3, which supports the new symbol syntax.

symbol: "value"

instead of

:symbol => "value"

Upvotes: 0

Related Questions