Thanks for your reply.
I am getting below error when trying to run setup.rb file.

[root@server rubygems-1.8.10]# 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


Thanks!

-- 
Posted via http://www.ruby-forum.com/.