安装RDoc文档时出错:不兼容的编码正则表达式匹配 [英] error installing RDoc documentation: incompatible encoding regexp match
问题描述
在上周,在几个宝石安装或宝石更新操作中,我收到类似于以下错误的错误:
Over the last week, on a few gem install or gem update operations, I've received an error similar to these:
ERROR: While generating documentation for sinatra-1.3.1 ... MESSAGE: error generating C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/doc/sinatra-1.3.1/rdoc/README_de_rdoc.html: incompatible encoding regexp match (UTF-8 regexp with IBM437 string) (Encoding::CompatibilityError)
类似地:
ERROR: While generating documentation for rest-client-1.6.7 ... MESSAGE: error generating C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/doc/rest-client-1.6.7/rdoc/README_rdoc.html: incompatible encoding regexp match (UTF-8 regexp with IBM437 string) (Encoding::CompatibilityError)
可能还有一个地方。我已经阅读了这一点,但是没有找到我没有写的代码的解决方案和我不能控制的数据。任何想法如何解决这个问题?
and possibly one other place. I've read up on this but don't find a solution for code I did not write and data I don't control. Any idea how to fix this?
推荐答案
michael.rp几乎有了,但Windows的环境字符串没有引号。同样的Linux解决方案出现在jerry提供的链接中。对于Windows:
michael.rp almost had it, but no quotes on the environment string for Windows. The same solution for Linux appears in the link supplied by jerry. For Windows:
设置RDOCOPT = - encoding = UTF-8
我把它放在$ code> RubyInstaller\Ruby1.9.3\setup_environment.bat 文件中,所以它总是存在。
I put this in the RubyInstaller\Ruby1.9.3\setup_environment.bat
file so it is always there.
这篇关于安装RDoc文档时出错:不兼容的编码正则表达式匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!