error installing RDoc documentation: incompatible encoding regexp match

前端 未结 3 883
南方客
南方客 2021-02-08 20:58

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          


        
3条回答
  •  失恋的感觉
    2021-02-08 21:21

    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:

    set RDOCOPT=--encoding=UTF-8

    I put this in the RubyInstaller\Ruby1.9.3\setup_environment.bat file so it is always there.

提交回复
热议问题