我正在尝试在 mac OSX 10.5.8 上更新我的 Rubygems。当前运行 1.0.1。我已经从https://rubygems.org/pages/download下载了 v.8.24 。
正如他们所说的CD'd到解压缩的文件夹,然后出来了:
macbook-10:~ sergehonderdos$ cd ~/Desktop/rubygems-1.8.24
macbook-10:rubygems-1.8.24 sergehonderdos$ sudo ruby setup.rb
Password:
./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, unexpected ',', expecting '|' (SyntaxError)
... define_method name do |*args, &block| # TODO: really works ...
^
./lib/rubygems/deprecate.rb:55: syntax error, unexpected tCONSTANT, expecting '}'
./lib/rubygems/deprecate.rb:64: syntax error, unexpected kEND, expecting '}'
./lib/rubygems/deprecate.rb:69: syntax error, unexpected kEND, expecting '}'
from ./lib/rubygems.rb:32
from setup.rb:27:in `require'
from setup.rb:27
macbook-10:rubygems-1.8.24 sergehonderdos$ gem -v
1.0.1
我尝试更新的原因是安装指南针。
我不知道出了什么问题,有什么解决办法吗?