ruby setup.rb CentOS 5 syntax error after running

ruby setup.rb CentOS 5 syntax error after running

[ad#Google Adsense 336 x 280]

# ruby setup.rb
./lib/rubygems.rb:332: warning: parenthesize argument(s) for future version
./lib/rubygems.rb:514: warning: parenthesize argument(s) for future version
./lib/rubygems.rb:30:in `require’: ./lib/rubygems/deprecate.rb:53: syntax error (SyntaxError)
define_method name do |*args, &block| # TODO: really works on 1.8.7?
^
./lib/rubygems/deprecate.rb:54: syntax error
./lib/rubygems/deprecate.rb:63: syntax error
./lib/rubygems/deprecate.rb:68: syntax error from ./lib/rubygems.rb:30
from setup.rb:27:in `require’
from setup.rb:27
#

The solution to do, you must install the ruby version 1.8.7 or above.
To install ruby version 1.8.7

You can use here.
or you can install 1.9 version from here.


Tags: , , , , ,

Translate

Buy me a Caffè Latte

Thank you for the Caffè Latte

2013/02/15 saw art
2013/01/25 Parul Patel
2012/11/20 Barbara Nicholas $10
2012/10/08 Amy Stockman $5
2012/07/15 siewho chang $ 50
2012/06/08 Susan Hampton $10
2012/05/11 Chris Grima $10