Ruby安装问题
XP下全新安装好ruby1.9.2后,执行 gem update
报下列错误:
D:\Ruby>gem update
Updating installed gems
Updating minitest
Successfully installed minitest-2.0.2
Updating rdoc
RDoc 2.5 did not save method parameters, so you should upgrade your rdoc-data
gem to a version >= 2.5.3.
To have ri data for core and stdlib you'll need to:
gem install rdoc-data
then run:
rdoc-data --install
To have ri data for you gems you'll also need to run:
gem rdoc --all --overwrite
If you don't want to rebuild the rdoc for `gem server`, add --no-rdoc.
Successfully installed rdoc-3.3
Gems updated: minitest, rdoc
Installing ri documentation for minitest-2.0.2...
Installing ri documentation for rdoc-3.3...
unable to convert U+00A9 from UTF-8 to GBK for lib/rdoc/text.rb, skipping
Installing RDoc documentation for minitest-2.0.2...
ERROR: While executing gem ... (Encoding::UndefinedConversionError)
U+00A9 from UTF-8 to GBK
后续装很多东西也是相同的错误,请问该怎么解决?
[解决办法]
上面描述很详细呀。看着像RDoc的问题,安装各种gem的时候加参数
--no-rdoc --no-ri