I’m a Ruby newbie under MacOSX 10.4.9. Ruby is working very well but
and I cannot find how and where to install the documentation in order
that rdoc and ri work. Yet from the Terminal I got the messages below.
Any clue? Thanks a lot.
B
$ rdoc “String”
File not found: String
$ ri String
No ri documentation found in:
Was rdoc run to create documentation?
Installing Documentation
‘ri’ uses a database of documentation built by the RDoc utility.
So, how do you install this documentation on your system? It depends on
how you installed Ruby.
If you installed Ruby from source files (that is, if it some point you
typed ‘make’ during the process :), you can install the RDoc
documentation yourself. Just go back to the place where you have your
Ruby source and type
make install-doc
You’ll probably need to do this as a superuser, as the documentation is
installed in the Ruby target tree (normally somewhere under
+/usr/local+.