undefined method `reset' for RDoc::TopLevel:Class when installing a new Ruby gem

前端 未结 2 1240
忘掉有多难
忘掉有多难 2021-02-08 04:29

For example,

$ gem install netaddr
Fetching: netaddr-1.5.1.gem (100%)
Successfully installed netaddr-1.5.1
ERROR:  While executing gem ... (NoMethodError)
    un         


        
2条回答
  •  梦毁少年i
    2021-02-08 04:54

    When installing rdoc it tries to generate its own documentation using rdoc. The binary is installed (probably in /usr/bin), but it will not be found at the moment of gem install - if this is the first time. gem install rdoc --no-document

提交回复
热议问题