22 Jan 00:47
Re: trouble generating ri of Ruby 1.9 on Fedora Core 4
From: Konrad Meyer <konrad <at> tylerc.org>
Subject: Re: trouble generating ri of Ruby 1.9 on Fedora Core 4
Newsgroups: gmane.comp.lang.ruby.documentation
Date: 2008-01-21 23:47:55 GMT
Subject: Re: trouble generating ri of Ruby 1.9 on Fedora Core 4
Newsgroups: gmane.comp.lang.ruby.documentation
Date: 2008-01-21 23:47:55 GMT
Quoth Maksim Khrapov:
> I'm trying to compile Ruby 1.9 on my web hosting provider's box running
Fedora Core 4.
Perhaps this is why? FC4 is 2+ years old.
> It compiles just fine, but when I do "make install" and try to generate the
docs, it chokes.
>
> Here is the error message:
> ---------------------------------------------------------------------------------------------------------------------
> No definition for rb_fiber_m_transfer
> ..
> No definition for rb_fiber_alive_p
> ..
> No definition for rb_fiber_s_current
> ..
> file.c:
mcmc......................................................................................................................................
> vm_dump.c:
> eval_safe.c:
> time.c:
c.........................................../home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:630:in
`find_body': unmatched close parenthesis: /((?>\/\*.*?\*\/\s*))
(?:static\s+)?VALUE\s+time_utc_offset (RegexpError)
> \s*(\([^)]*\))\s*\{.*?^\}/mx
from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:619:in
`handle_method'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:415:in `block in
do_methods'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:392:in `scan'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:392:in
`do_methods'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/parsers/parse_c.rb:195:in `scan'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/rdoc.rb:231:in `block in
parse_files'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/rdoc.rb:219:in `each'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/rdoc.rb:219:in `parse_files'
> from /home/maksim/ruby-1.9.0-0/lib/rdoc/rdoc.rb:269:in `document'
> from ./bin/rdoc:63:in `<main>'
> make: *** [rdoc] Error 1
> [2] openhost:~/ruby-1.9.0-0
> ---------------------------------------------------------------------------------------------------------------------
>
> which shows that the culprit is time.c file. The funny thing is that
generating docs for just this file by itself works OK:
> ----------------------------------------------------------------------------------------------------------------------
> [1] openhost:~/ruby-1.9.0-0
>
$ ./miniruby ./runruby.rb --extout=.ext -- "./bin/rdoc" --all --ri --op ".ext/rdoc2"
time.c
>
> time.c: c..............................................................
> Generating RI...
>
> Files: 1
> Classes: 1
> Modules: 0
> Methods: 62
> Elapsed: 0.526s
> [0] openhost:~/ruby-1.9.0-0
> $
> ------------------------------------------------------------------------------------------------------------------
>
> At home, on Fedora 8 box everything works fine. Any help, please?
>
> Thank you.
>
> Max
Install Fedora 8 on your server box.
--
--
Konrad Meyer <konrad <at> tylerc.org> http://konrad.sobertillnoon.com/
RSS Feed