新手问题 [已解决] gem install httpclient 报错

jjym · 2012年07月05日 · 最后由 jjym 回复于 2012年07月05日 · 4057 次阅读

sudo gem install httpclient

Successfully installed httpclient-2.2.5
1 gem installed
Installing ri documentation for httpclient-2.2.5...


RDoc failure in lib/httpclient.rb at or around line 405 column 16

Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.

The internal error was:

ERROR:  While generating documentation for httpclient-2.2.5
... MESSAGE:   undefined method `name' for #<RubyToken::TkLPAREN:0xb688113c>
... RDOC args: --ri --op /var/lib/gems/1.8/doc/httpclient-2.2.5/ri lib --title httpclient-2.2.5 Documentation --quiet

系统 ubuntu,ruby1.9/rvm 装得。谷歌到一个,但是没搞懂是什么意思 https://github.com/rdoc/rdoc/issues/123

不装文档就得了..反正也不会去看

但是我 httpclient 也没装上

X。。我不加 sudo 装上了。。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号