我正嘗試安裝RubyGems的,與管家(IRC BOT)安裝RubyGems的安裝問題
紅寶石成功地,用yum安裝Ruby
和使用Ruby -v給我ruby 1.8.5 (2006-08-25) [i386-linux]
現在,安裝紅寶石寶石,我使用wget http://rubyforge.org/frs/download.php/76728/rubygems-1.8.25.zip
然後unzip rubygems-1.8.25.zip
一切解壓罰款
現在,進一步在我tutorial i am using它告訴我做ruby setup.rb
對此我做荷蘭國際集團,然後,我收到此錯誤:
./lib/rubygems.rb:335: warning: parenthesize argument(s) for future version
./lib/rubygems.rb:517: warning: parenthesize argument(s) for future version
./lib/rubygems.rb:32:in `require': ./lib/rubygems/deprecate.rb:54: syntax error (SyntaxError)
define_method name do |*args, &block| # TODO: really works on 1.8.7?
^
./lib/rubygems/deprecate.rb:55: syntax error
./lib/rubygems/deprecate.rb:64: syntax error
./lib/rubygems/deprecate.rb:69: syntax error from ./lib/rubygems.rb:32
from setup.rb:27:in `require'
from setup.rb:27
我沒有一個線索從哪裏開始,試圖解決這個問題,或者我需要做什麼。我期待安裝rubygems,我是否正確地做到了這一點?
這是一個常見的問題。嘗試使用RVM --- https://rvm.io/ – Hemanth 2013-02-21 06:37:01