Rails3 beta3 is not installing properly

Looks like documentation is not installing properly for Rails3 beta3.
Here is the error I'm facing :

Successfully installed rails-3.0.0.beta3
1 gem installed
Installing ri documentation for rails-3.0.0.beta3...
ERROR: While executing gem ... (Errno::ENOENT)
    No such file or directory - lib

Could you try uninstalling the previous beta gems first, then
reinstalling the latest?

jeremy

Fresh installation 2 minutes ago

debian:~# gem install rails --pre
Successfully installed activesupport-3.0.0.beta3
Successfully installed activemodel-3.0.0.beta3
Successfully installed actionpack-3.0.0.beta3
Successfully installed arel-0.3.3
Successfully installed activerecord-3.0.0.beta3
Successfully installed activeresource-3.0.0.beta3
Successfully installed actionmailer-3.0.0.beta3
Successfully installed railties-3.0.0.beta3
Successfully installed rails-3.0.0.beta3
9 gems installed
Installing ri documentation for activesupport-3.0.0.beta3...
Installing ri documentation for activemodel-3.0.0.beta3...
Installing ri documentation for actionpack-3.0.0.beta3...
Installing ri documentation for arel-0.3.3...
Installing ri documentation for activerecord-3.0.0.beta3...
Installing ri documentation for activeresource-3.0.0.beta3...
Installing ri documentation for actionmailer-3.0.0.beta3...
Installing ri documentation for railties-3.0.0.beta3...
Installing ri documentation for rails-3.0.0.beta3...
Installing RDoc documentation for activesupport-3.0.0.beta3...
Installing RDoc documentation for activemodel-3.0.0.beta3...
Installing RDoc documentation for actionpack-3.0.0.beta3...
Installing RDoc documentation for arel-0.3.3...
Installing RDoc documentation for activerecord-3.0.0.beta3...
Installing RDoc documentation for activeresource-3.0.0.beta3...
Installing RDoc documentation for actionmailer-3.0.0.beta3...
Installing RDoc documentation for railties-3.0.0.beta3...
Installing RDoc documentation for rails-3.0.0.beta3...

Not that I doubt it, but I am interested if this solves the problem.

for me the following fix worked on Mac OS X Snow Leopard:

“sudo mkdir /opt/local/lib/ruby1.9/gems/1.9.1/gems/rails-3.0.0.beta3/
lib”

when you installed ruby 1.9 with macports. if you didn’t you can use
“dtruss” on the gem installation to find the missing directory

Just to confirm the same issue on Windows. I had to create the lib
folder too: \Ruby19\lib\ruby\gems\1.9.1\gems\rails-3.0.0.beta3\lib