I had previously installed RDoc. I checked out the latest Ruby via CVS,
then typed
% ./configure --enable-install-doc
% make
% make install
At the end of the compilation process, I saw
Generating RDoc documentation
/usr/local/bin/ruby ./bin/rdoc --all --ri-system .
./bin/rdoc:59:in `require': No such file to load -- rdoc/rdoc (LoadError)
from ./bin/rdoc:59
make: *** [install-doc] Error 1
Following a suggestion by Gavin Sinclair on the ruby-doc email list, I
tried un-installing the existing RDoc installation and redoing everything.
That didn’t fix the problem; I still see the same error.
I don’t think that RDoc is getting installed by the CVS version of Ruby,
but it tries to use rdoc.
Any suggestions?
Thanks for your help.
Jim
···
–
Jim Menard, jimm@io.com, http://www.io.com/~jimm/
"‘Deconstruct and recontextualize’ sounds fancier than ‘cut and paste’,
but it’s the same thing." – Donald Welsh in rec.humor.oracle.d
The folks at ruby-doc have nothing to do with ri and rdoc (apart from
using it). Feel free to drop me e-mail and I’ll do my best to help.
In this case, the “–enable-install-doc” option is not current. In the
latest CVS, the installation is enabled by default (there was much
discussion on ruby-code about this. At some point matz decided and the
patch went in) Could you check your Makefile. You should find lines
that look something like:
Following a suggestion by Gavin Sinclair on the ruby-doc email list, I
tried un-installing the existing RDoc installation and redoing
everything.
That didn’t fix the problem; I still see the same error.
–
Jim Menard, jimm@io.com, http://www.io.com/~jimm/
“We’ve heard that a million monkeys at a million keyboards could produce the
Complete Works of Shakespeare; now, thanks to the Internet, we know this is
not true.” – Robert Wilensky, University of California
The folks at ruby-doc have nothing to do with ri and rdoc (apart from
using it). Feel free to drop me e-mail and I’ll do my best to help.
Trying to run the “rdoc --all -R $PWD” to generate ri data on 1.8.1 leads
to the following:
[…]
bignum.c:
array.c:
Generating RI…
/usr/local/lib/ruby/1.8/rdoc/markup/simple_markup/to_flow.rb:92:in accept_rule': undefined local variable or method size’ for #SM::ToFlow:0x11795720 (NameError)
from/usr/local/lib/ruby/1.8/rdoc/markup/simple_markup/fragments.rb:170:in accept' from/usr/local/lib/ruby/1.8/rdoc/markup/simple_markup/fragments.rb:165:in each’
from/usr/local/lib/ruby/1.8/rdoc/markup/simple_markup/fragments.rb:165:in accept' from /usr/local/lib/ruby/1.8/rdoc/markup/simple_markup.rb:259:in convert’
from /usr/local/lib/ruby/1.8/rdoc/generators/ri_generator.rb:224:in markup' from /usr/local/lib/ruby/1.8/rdoc/generators/ri_generator.rb:153:in generate_method_info’
from /usr/local/lib/ruby/1.8/rdoc/generators/ri_generator.rb:133:in generate_class_info' from /usr/local/lib/ruby/1.8/rdoc/generators/ri_generator.rb:132:in each’
from /usr/local/lib/ruby/1.8/rdoc/generators/ri_generator.rb:132:in generate_class_info' from /usr/local/lib/ruby/1.8/rdoc/generators/ri_generator.rb:90:in process_class’
from /usr/local/lib/ruby/1.8/rdoc/generators/ri_generator.rb:85:in generate' from /usr/local/lib/ruby/1.8/rdoc/generators/ri_generator.rb:84:in each’
from /usr/local/lib/ruby/1.8/rdoc/generators/ri_generator.rb:84:in generate' from /usr/local/lib/ruby/1.8/rdoc/rdoc.rb:210:in document’
from /usr/local/bin/rdoc:63
for f in Dir["lib/**/*{.rb,help-message}"]
dir = File.dirname(f).sub!(/\Alib/, rubylibdir) || rubylibdir
makedirs dir
install f, dir, :mode => 0644
end
By any chance… when you checked out of CVS, did you forget to use the
‘-d’ option? Do you actually have the RDoc libraries downloaded to your
box? (After you check out, do an ls lib/rdoc)
Cheers
Dave
···
On Jan 11, 2004, at 11:01, Jim Menard wrote:
However, it still only installs the rdoc binary but does not install
the rdoc
ruby library.
I’m on Mac OS X, if that matters. Thanks for your help.
By any chance… when you checked out of CVS, did you forget to use the
‘-d’ option? Do you actually have the RDoc libraries downloaded to your
box? (After you check out, do an ls lib/rdoc)
AAARRRGGGHHH! Rather, ARGV! I always forget “-d”. It’s time to retrain my
fingers.
That was it. Thank you, Dave.
Jim
···
–
Jim Menard, jimm@io.com, http://www.io.com/~jimm/
“If you mark half [of this newsgroup’s] posts as read, you still get
basically all the same information, just with a bit less detail. [This] is
a holographic newsgroup.” – Tom “Tom” Harrington in rec.humor.oracle.d
By any chance… when you checked out of CVS, did you forget to use the
‘-d’ option? Do you actually have the RDoc libraries downloaded to your
box? (After you check out, do an ls lib/rdoc)
AAARRRGGGHHH! Rather, ARGV! I always forget “-d”. It’s time to retrain my
fingers.