我正在尝试使用 ri 工具,但无法让它们工作。我也试过rvm docs generate
了rvm docs generate-ri
。两者都没有解决问题。我在 Mac OSx 版本 10.8.2 上。
谢谢
$ ri String
/Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/store.rb:546:in `load': undefined class/module Encoding (ArgumentError)
from /Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/store.rb:546:in `load_cache'
from /Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/store.rb:545:in `open'
from /Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/store.rb:545:in `load_cache'
from /Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:384:in `initialize'
from /Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/ri/paths.rb:54:in `each'
from /Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:378:in `initialize'
from /Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:355:in `new'
from /Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/lib/rdoc/ri/driver.rb:355:in `run'
from /Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/gems/rdoc-4.0.1/bin/ri:12
from /Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/bin/ri:19:in `load'
from /Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/bin/ri:19
from /Users/zackwarburg/.rvm/gems/ree-1.8.7-2012.02/bin/ruby_noexec_wrapper:14