Forum: Ruby rdoc windows issues

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
622fa8560c82dfaa59c91ec75efb0c19?d=identicon&s=25 Alex Combas (Guest)
on 2006-02-15 22:44
(Received via mailing list)
Here is a more detailed description of what is wrong with rdoc
I'm trying to build ruby from source using the stable-snapshot from
here:
ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz

Building on a winXP box using mingw/msys

Ruby builds just fine, everything seems to work afaik.
To configure and build I used the following:

./configure --prefix=C:\ruby --enable-shared
(fine)

make
(fine)

make install
(fine)

make install-doc
(broken!)

Generating RDoc documentation
./miniruby.exe ./runruby.rb --extout=.ext -- "./bin/rdoc" --all --ri
--op "C:/test_ruby/share/ri/1.8/system" "."
c:/ruby/build/ruby/lib/tracer.rb:27:in `(null)': undefined method `[]'
for nil:NilClass (NoMethodError)
        from c:/ruby/build/ruby/lib/rdoc/parsers/parse_rb.rb:16:in
`(null)'
        from c:/ruby/build/ruby/lib/rdoc/rdoc.rb:8:in `(null)'
        from ./bin/rdoc:59
make: *** [do-install-doc] Error 1


Seems like this is a window issue and
perhaps there are somethings in the wrong places
here are the relevant lines from the files mentioned in the
output.

*Here is line 59 of ./bin/rdoc
require 'rdoc/rdoc'

*Here is line 8 of c:/ruby/build/ruby/lib/rdoc/rdoc.rb
require 'rdoc/parsers/parse_rb.rb'

*Here is line 16 of c:/ruby/build/ruby/lib/rdoc/parsers/parse_rb.rb
require "tracer"

*Here is line 27 from c:/ruby/build/ruby/lib/tracer.rb
MY_FILE_NAME = caller(0)[0].scan(/^(.*):[0-9]+$/)[0][0]



Can anyone make heads or tails of whats wrong with my setup?
Thank you!
This topic is locked and can not be replied to.