Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"rvm docs generate" is killed

Tags:

ruby

rvm

rdoc

Any idea why rvm(1.18.15) fails to generate the document for ruby2.0?

$ rvm docs generate

ri documentation, be aware that this could take a long time, and depends heavily on your system resources...
( Errors will be logged to /home/user/.rvm/log/ruby-2.0.0-p0/docs.log )
Generating rdoc documentation, be aware that this could take a long time, and depends heavily on your system resources...
( Errors will be logged to /home/user/.rvm/log/ruby-2.0.0-p0/docs.log )
/home/user/.rvm/scripts/docs: line 81: 6696 Killed rdoc -a -o "${rvm_docs_path:-"$rvm_path/docs"}/$rvm_docs_ruby_string/$rvm_docs_type" > /dev/null 2>> "${rvm_log_path}/$rvm_docs_ruby_string/docs.log"

Below is the content of the docs.log.

uh-oh! RDoc had a problem:
uninitialized constant RDoc::RI::Paths::SITEDIR

run with --debug for full backtrace

Generating Darkfish format into /home/user/.rvm/docs/ruby-2.0.0-p0/rdoc...
uh-oh! RDoc had a problem:
uninitialized constant RDoc::RI::Paths::SITEDIR

run with --debug for full backtrace

Generating Darkfish format into /home/user/.rvm/docs/ruby-2.0.0-p0/rdoc...

like image 299
canoe Avatar asked Feb 02 '26 05:02

canoe


1 Answers

this is rdoc / ruby issue:

  • https://bugs.ruby-lang.org/issues/8037
  • https://github.com/rdoc/rdoc/issues/193
  • https://github.com/rdoc/rdoc/issues/194

you can overcome this problem by reinstalling ruby with --docs flag:

rvm get head
rvm reinstall 2.0.0 --docs
like image 122
mpapis Avatar answered Feb 04 '26 00:02

mpapis