Ri has empty documents - Ubuntu 11.10, Ruby 1.9

I run Ubuntu 11.10 and install Ruby 1.9 as follows:

$ sudo apt-get install ruby1.9 rubygems

Everything works very well, but riseems to contain empty documentation. ritold me that the documents were empty and I had to install them. I did this because I read that this would help:

$ rdoc --all --ri

Now when I try to open any documentation:

$ ri Array
Nothing known about Array

I get the same for everything I'm looking for.

+5
source share
5 answers

how about this?

apt-get install ri1.8

EDIT

or try the following: (non rvm)

gem install rdoc rdoc-data
rdoc-data --install
+8
source

, ri1.8 . 'ri1.9.1', ruby1.9.1 . "update-alternatives", 1.9.1 (-).

+1

sudo apt-get install ri

+1
source

"install ri" installs 1.8 (at least on Ubuntu 12.04). Use

sudo apt-get install ri1.9
+1
source

The documentation does not come immediately with Ruby installations, even before 1.9.3. An effective shortcut to installing Ruby Documentation is to use the code:

sudo apt-get install ri

There is no need to specify which version as the terminal will capture documentation from the latest Ruby information, and this should work as long as you have the latest version of Ruby installed on Ubuntu.

0
source

All Articles