[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

help with rdoc stdlib on windows 2000

tesla

12/19/2006 2:16:00 PM

Hi,

I can't get any output using rdoc on the stdlib. I am using windows
2000 and ruby 1.8.4. from the one-click installer. I have tried:

rdoc c:\ruby\lib -f html --op f:\temp\rubydocs

rdoc c:\ruby\lib -f html -o f:\temp\rubydocs

and

rdoc c:\ruby\lib -f chm -o f:\temp\rubydocs --op rubydocs.chm

With nothing but a long wait to show for the effort. Any help would be
appreciated.

thx

-Tesla



5 Answers

tesla

12/19/2006 5:05:00 PM

0

tesla wrote:
> Hi,
>
> I can't get any output using rdoc on the stdlib. I am using windows
> 2000 and ruby 1.8.4. from the one-click installer. I have tried:
>
> rdoc c:\ruby\lib -f html --op f:\temp\rubydocs
>
> rdoc c:\ruby\lib -f html -o f:\temp\rubydocs
>
> and
>
> rdoc c:\ruby\lib -f chm -o f:\temp\rubydocs --op rubydocs.chm
>
> With nothing but a long wait to show for the effort. Any help would be
> appreciated.
>
> thx
>
> -Tesla
>
>
>
>
Here's the error code

Generating HTML...
c:/ruby/lib/ruby/1.8/ftools.rb:218:in `mkdir': Invalid argument -
files/c: (Errn
o::EINVAL)
from c:/ruby/lib/ruby/1.8/ftools.rb:218:in `makedirs'
from c:/ruby/lib/ruby/1.8/ftools.rb:211:in `makedirs'
from c:/ruby/lib/ruby/1.8/ftools.rb:214:in `makedirs'
from c:/ruby/lib/ruby/1.8/ftools.rb:211:in `makedirs'
from c:/ruby/lib/ruby/1.8/ftools.rb:214:in `makedirs'
from c:/ruby/lib/ruby/1.8/ftools.rb:211:in `makedirs'
from c:/ruby/lib/ruby/1.8/ftools.rb:214:in `makedirs'
from c:/ruby/lib/ruby/1.8/ftools.rb:211:in `makedirs'
from c:/ruby/lib/ruby/1.8/ftools.rb:214:in `makedirs'
from c:/ruby/lib/ruby/1.8/ftools.rb:211:in `makedirs'
from
c:/ruby/lib/ruby/1.8/rdoc/generators/html_generator.rb:1285:in `gen
_into'
from
c:/ruby/lib/ruby/1.8/rdoc/generators/html_generator.rb:1282:in `gen
_into'
from
c:/ruby/lib/ruby/1.8/rdoc/generators/html_generator.rb:1269:in `gen
erate_html'
from
c:/ruby/lib/ruby/1.8/rdoc/generators/html_generator.rb:1190:in `gen
erate'
from c:/ruby/lib/ruby/1.8/rdoc/rdoc.rb:263:in `document'
from c:/ruby/bin/rdoc.bat:70

Paul Lutus

12/19/2006 5:35:00 PM

0

tesla wrote:

/ ...

> Here's the error code
>
> Generating HTML...
> c:/ruby/lib/ruby/1.8/ftools.rb:218:in `mkdir': Invalid argument -
> files/c: (Errno::EINVAL)

There is one error. At some point, an argument is generated to make a
directory on the path "files/c:". This is not a valid path.

I know this is no a complete answer, but this stands out as an obvious
error.

--
Paul Lutus
http://www.ara...

Daniel Berger

12/19/2006 6:02:00 PM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Lutus wrote:
> tesla wrote:
>
> / ...
>
>> Here's the error code
>>
>> Generating HTML...
>> c:/ruby/lib/ruby/1.8/ftools.rb:218:in `mkdir': Invalid argument -
>> files/c: (Errno::EINVAL)
>
> There is one error. At some point, an argument is generated to make a
> directory on the path "files/c:". This is not a valid path.
>
> I know this is no a complete answer, but this stands out as an obvious
> error.
>

I wonder if it's a path separator issue. Perhaps replacing the
backslashes with forward slashes will work.

- - Dan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail....

iD8DBQFFiCkO3p/dorzCFX0RAgJ9AJ9FfEnwwtO+NK36F9eyDGBKgJb7ewCbBIf9
R12w5mwfiGCS68F7f3AvGik=
=5zv7
-----END PGP SIGNATURE-----

Eric Hodel

12/19/2006 6:44:00 PM

0

On Dec 19, 2006, at 06:15, tesla wrote:
> I can't get any output using rdoc on the stdlib. I am using
> windows 2000 and ruby 1.8.4. from the one-click installer. I have
> tried:
>
> rdoc c:\ruby\lib -f html --op f:\temp\rubydocs
>
> rdoc c:\ruby\lib -f html -o f:\temp\rubydocs
>
> and
>
> rdoc c:\ruby\lib -f chm -o f:\temp\rubydocs --op rubydocs.chm

These won't give you the stdlib docs since it can't get RDoc from the
C sources you don't have.

Get a source tarball and build from it.

--
Eric Hodel - drbrain@segment7.net - http://blog.se...

I LIT YOUR GEM ON FIRE!


tesla

12/19/2006 9:07:00 PM

0

tesla wrote:
> Hi,
>
> I can't get any output using rdoc on the stdlib. I am using windows
> 2000 and ruby 1.8.4. from the one-click installer. I have tried:
>
> rdoc c:\ruby\lib -f html --op f:\temp\rubydocs
>
> rdoc c:\ruby\lib -f html -o f:\temp\rubydocs
>
> and
>
> rdoc c:\ruby\lib -f chm -o f:\temp\rubydocs --op rubydocs.chm
>
> With nothing but a long wait to show for the effort. Any help would be
> appreciated.
>
> thx
>
> -Tesla
>
>
>
>
I appears to be a bug. Rdoc does not recognize any paths other than
root. Given a Drive letter in Windows or Linux it fails. So you can't
run on one disk and write to another.

Tesla