error while generating rdoc for ruby1.9.2p136

87 views
Skip to first unread message

Robert Pankowecki (rupert)

unread,
Dec 29, 2010, 6:18:21 AM12/29/10
to rvm (Ruby Version Manager)
I have this error when installing ruby1.9.2p136 from rvm:

Generating RDoc documentation
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./tool/
runruby.rb --extout=.ext -- "./bin/rdoc" --no-force-update --all --ri
--op ".ext/rdoc" "."
/home/rupert/.rvm/gems/ruby-1.9.2-head/gems/rdoc-2.5.11/lib/rdoc/
rdoc.rb:58: warning: already initialized constant GENERATORS
Parsing sources...
0% [ 1/515] re.c
Before reporting this, could you check that the file you're
documenting
compiles cleanly--RDoc is not a full Ruby parser, and gets confused
easily if
fed invalid programs.

The internal error was:

(NoMethodError) undefined method `set_encoding' for
RDoc::Parser:Class

uh-oh! RDoc had a problem:
undefined method `set_encoding' for RDoc::Parser:Class


I managed to get around it by editing $HOME/.rvm/src/ruby-1.9.2-p136/
common.mk file
and changing rdoc task definition to:
rdoc: PHONY
nordoc: PHONY

Could you update the documentation with an example on how to disabled
running rdoc for ruby when installing rvm ?

Luis Lavena

unread,
Dec 29, 2010, 7:17:24 AM12/29/10
to rubyversi...@googlegroups.com
On Wed, Dec 29, 2010 at 8:18 AM, Robert Pankowecki (rupert)
<robert.p...@gmail.com> wrote:
> I have this error when installing ruby1.9.2p136 from rvm:
>
> Generating RDoc documentation
> ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb  ./tool/
> runruby.rb --extout=.ext  -- "./bin/rdoc" --no-force-update --all --ri
> --op ".ext/rdoc"  "."
> /home/rupert/.rvm/gems/ruby-1.9.2-head/gems/rdoc-2.5.11/lib/rdoc/
> rdoc.rb:58: warning: already initialized constant GENERATORS
> Parsing sources...

What command you used to install that specific version of Ruby? By
default RVM do not install or generate RDoc/RI documentation.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Robert Pankowecki (rupert)

unread,
Dec 29, 2010, 8:08:19 AM12/29/10
to rvm (Ruby Version Manager)
rvm install ruby-1.9.2

This rdoc task comes from build process of ruby not rvm i guess.

Robert Pankowecki (rupert)

unread,
Dec 31, 2010, 9:50:28 AM12/31/10
to rvm (Ruby Version Manager)
I used: rvm install ruby-1.9.2

The task to generate rdoc is part of ruby installation process.
I would like it to be documented how to turn this off when installing
from rvm.

Robert Pankowecki

Brian Morearty

unread,
Jan 31, 2011, 1:46:44 AM1/31/11
to rvm (Ruby Version Manager)
Hi gang,

Thanks for rvm. It's great!

For what it's worth, Robert is not the only one getting this error.
I'm getting almost exactly the same error and was able to work around
it by using the hack he posted (thank you Robert!). I modified the
makefile so the 'rdoc' task does not do anything.

I would like to echo Robert's request to document a way to disable
rdoc generation during rvm install.

I said "almost" exactly the same error because both of our errors
report a warning "already initialized constant GENERATORS" but after
that, he gets:

undefined method `set_encoding' for RDoc::Parser:Class

and I get:

undefined method `coverage_report' for #<RDoc::Options:0x7841a0>

Clues that might help:
- I don't know about set_encoding, but coverage_report was just added
to RDoc::Options a month and a half ago (Dec 15 checkin, Dec 20
release of rdoc 3.0.1): https://github.com/rdoc/rdoc/commit/60758303ce33639bb27c1037e8af1d130fa6baaf
- Even though I was installing ruby 1.9.2, rvm ran rdoc from my 1.8.7
installation. Notice the 1.8.7 in the last few lines of the makefile
log:

Generating RDoc documentation
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb&nbsp; ./tool/
runruby.rb --extout=.ext&nbsp; -- "./bin/rdoc" --no-force-update --all
--ri --op ".ext/rdoc"&nbsp; "."
/Users/Brian/.rvm/gems/ruby-1.8.7-p330/gems/rdoc-3.4/lib/rdoc/rdoc.rb:
79: warning: already initialized constant GENERATORS
uh-oh! RDoc had a problem:
undefined method `coverage_report' for #<RDoc::Options:0x7841a0>

Brian Morearty



On Dec 31 2010, 6:50 am, "Robert Pankowecki (rupert)"

Andrew Selder

unread,
Feb 4, 2011, 3:59:16 PM2/4/11
to rvm (Ruby Version Manager)
I managed to get around this problem by switching to the system
install of Ruby before running the install command

rvm system
rvm install 1.9.2-p136

On Dec 29 2010, 3:18 am, "Robert Pankowecki (rupert)"
Reply all
Reply to author
Forward
0 new messages