On Dec 27, 8:22 am, Santanu <thisissant... / gmail.com> wrote:
> On Dec 27, 6:56 pm, Jeremy McAnally <jeremymcana... / gmail.com> wrote:
>
> > I believe you can use `help`.  For example:  help puts
>
> First of all, thanks for your response.
> Yes, I did try things like 'help puts', but all I get are these error
> messages:
> -------------------------------------------
> irb(main):032:0> help puts
>
> No ri documentation found in:
>
> Was rdoc run to create documentation?
>
> Errno::ENOENT: No such file or directory - (null)
>         from /usr/lib/ruby/1.8/rdoc/usage.rb:100:in `initialize'
>         from /usr/lib/ruby/1.8/rdoc/usage.rb:100:in `open'
>         from /usr/lib/ruby/1.8/rdoc/usage.rb:100:in `usage_no_exit'
>         from /usr/lib/ruby/1.8/rdoc/usage.rb:93:in `usage'
>         from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:39:in
> `report_missing_documentation'
>         from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:25:in `initialize'
>         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require'
>         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
>         from (eval):3:in `help'
>         from (irb):32
>         from (null):0
> irb(main):033:0>
> -------------------------------------
>
> I use Ubuntu 7.10, and I have already installed rdoc. I don't
> understand
> the error message much but it seems I have to do something else to
> make the help command work. Do I have to install ruby source and run
> rdoc through them?
>
> Regards,
> Santanu

Maybe there are ri / ruby-doc / ruby-dev packages that provide the
docs? You shouldn't have to build from source...I can't imagine the
maintainers of Ubuntu would leave it out altogether. But I could be
wrong...in which case here is a guide for building ruby from source on
ubuntu (it's easy :) http://www.rubywizards.com/viewtopic.php?pid=19

Regards,
Jordan