On Jul 20, 2011, at 6:28 PM, Dev Guy wrote:
> On Wed, Jul 20, 2011 at 9:08 PM, Eric Hodel <drbrain / segment7.net> =
wrote:
>> On Jul 20, 2011, at 8:29 AM, Dev Guy wrote:
>>> I get the following build error on my Linux box while trying to =
build
>>> ruby-1.9.2-p290, how to fix? it look like a issues with RDoc
>>=20
>> Can you run just this from the build directory:
>>=20
>> ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb
>> ./tool/runruby.rb --extout=3D.ext  -- "./bin/rdoc" --no-force-update
>> --all --ri --op ".ext/rdoc"  "." --debug
>>=20
>> It should print out a backtrace
>>=20
>=20
> i assume that's all in one line?

Yup.

> here is what I got
>=20
> /usr/local/lib/ruby/gems/1.9.1/gems/rdoc-3.8/lib/rdoc/rdoc.rb:79:
> warning: already initialized constant GENERATORS
> undefined method `coverage_report' for =
#<RDoc::Options:0x000000027cd678>
> /usr/local/lib/ruby/gems/1.9.1/gems/rdoc-3.8/lib/rdoc/rdoc.rb:428:in =
`document'
>        ./bin/rdoc:15:in `<main>'

I tried to reproduce your issue with the following steps:

Download 1.9.2-p136 and -p290

Install p136 into ~/tmp/ruby/136

export PATH=3D~/tmp/ruby/136/bin

Install RDoc 3.8

in p290: ./configure --prefix=3D/Users/drbrain/tmp/ruby/290; make

It did not reproduce.

Do you have RUBYOPT set?

Do you have any rdoc plugins installed?  `gem list rdoc` should list =
them

Can you run this command:

$ ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb =
./tool/runruby.rb --extout=3D.ext -- -e 'require "rdoc/rdoc"; p =
$".grep(/generator/)'

I get:

["/Users/drbrain/tmp/ruby/ruby-1.9.2-p290/lib/rdoc/generator.rb", =
"/Users/drbrain/tmp/ruby/ruby-1.9.2-p290/lib/rdoc/generator/markup.rb", =
"/Users/drbrain/tmp/ruby/ruby-1.9.2-p290/lib/rdoc/generator/darkfish.rb", =
"/Users/drbrain/tmp/ruby/ruby-1.9.2-p290/lib/rdoc/generator/ri.rb"]

You should see something similar.=