Ruby   发布时间:2022-04-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了rubygems – 安装gem时发生问题大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图安装”’sudo gem install soap4r”’

但我面临下面的问题..

Successfully installed httpclient-2.2.4

Successfully installed soap4r-1.5.8

2 gems installed

Installing ri documentation for httpclient-2.2.4...


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 executing gem ... (NoMethodError)
    undefined method `name' for #<RubyToken::TkLPAREN:0xb6598024>

解决方法

不要担心它太多了,它只是试图安装gem的ri文档,但正如它所说,宝石本身安装成功.如果不使用ri / Rdoc,可以在运行gem安装时通过–no-rdoc –no-ri来跳过安装本地文档,也可以使用 modify your .gemrc file to make it the default.

大佬总结

以上是大佬教程为你收集整理的rubygems – 安装gem时发生问题全部内容,希望文章能够帮你解决rubygems – 安装gem时发生问题所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: