Project

General

Profile

Bug #3121

"make rdoc" fails

Added by mame (Yusuke Endoh) over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.2dev (2010-04-10 trunk 27284) [i686-linux]
Backport:
[ruby-core:29415]

Description

=begin
Hi, Eric Hodel

Maybe because of recent change of rdoc, "make rdoc" fails on trunk
when there is already .ext/rdoc:

$ rm -rf .ext/rdoc

$ make rdoc
snip
# success

$ make
snip
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" "."
uh-oh! RDoc had a problem:

Directory .ext/rdoc already exists, but it looks like it
isn't an RDoc directory. Because RDoc doesn't want to risk
destroying any of your existing files, you'll need to
specify a different output directory name (using the
--op option).

run with --debug for full backtrace
make: *** [rdoc] Error 1

Because of this, "make" itself also fails now. It really disturbs
other developers. Please check (and fix) ASAP.

--
Yusuke Endoh mame@tsg.ne.jp
=end

#1

Updated by 404 (why 404) over 10 years ago

=begin
I got the same error message when I was using the RVM to install Ruby from trunk source. Hope it will be working ASAP! :)

~$ rvm install 1.9.2-head

Installing Ruby from source to: ~/.rvm/rubies/ruby-1.9.2-head
Running autoconf
Configuring ruby-1.9.2-head, this may take a while depending on your cpu(s)...
Compiling ruby-1.9.2-head, this may take a while, depending on your cpu(s)...
Installing ruby-1.9.2-head
Error running 'make install', please check ~/.rvm/log/ruby-1.9.2-head/install*.log
There has been an error while running make install. Aborting the installation.

~$ cat ~/.rvm/log/ruby-1.9.2-head/install.error.log

[2010-04-11 01:48:50] make install
uh-oh! RDoc had a problem:

Directory .ext/rdoc already exists, but it looks like it
isn't an RDoc directory. Because RDoc doesn't want to risk
destroying any of your existing files, you'll need to
specify a different output directory name (using the
--op option).

run with --debug for full backtrace
make: *** [rdoc] error 1

So I changed my mind to use ruby-1.9.2-preview1, just run the following command´╝Ü

~$ rvm install 1.9.2 --head

It workes!
=end

#2

Updated by naruse (Yui NARUSE) over 10 years ago

=begin
I fixed it in r27288.
=end

#3

Updated by naruse (Yui NARUSE) over 10 years ago

=begin
Eric, close this ticket when you merge r27288 to your repo.
(r27290 is also a fix for rdoc).
=end

#4

Updated by drbrain (Eric Hodel) over 10 years ago

  • Status changed from Open to Closed

=begin
I have applied both of these changes and added tests.

RDoc has been updated to 2.5.3.
=end

Also available in: Atom PDF