error installing RDoc documentation: incompatible encoding regexp match

前端 未结 3 900
南方客
南方客 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:06

    On Windows, this worked for me:

    > set RDOCOPT="--encoding=UTF-8"
    > gem install heroku
    
    0 讨论(0)
  • 2021-02-08 21:13

    I had a similar problem on Ubuntu and updating rubygems itself solved the problem for me. You can do that by entering the following at the command line:

    gem update --system
    

    Also, you can always skip the doc generation by using:

    --no-rdoc --no-ri
    

    when installing the gem.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题