Installing ri documentation SLOW (Windows)

Hi,

When I install new GEMs the ri doc installs are taking forever. I am
waiting now over 10 minutes on actionpack-3.2.3 ri documentation to
install.

I am running Ruby 1.9.3. My machine is Windows 7 x64, 2500k (fast) with
8GB RAM.

I always have problems with documentation installs. Previously I got
loads of UTF-8 errors, wiped the whole thing and started again.

It's going on 15 minutes now for this and I think I am going to ctrl_c
it.

How come Ruby on Windows is such a mess? I use the proper windows
installer, but still it is a nightmare getting up and running on rails.

I have VM Workstation. Would it just be quicker running all this in a
virtual machine in Linux?

···

--
Posted via http://www.ruby-forum.com/.

Try adding "gem: --no-ri --no-rdoc" to your .gemrc

···

On 04/20/2012 03:21 PM, Kevin McCaughey wrote:

Hi,

When I install new GEMs the ri doc installs are taking forever. I am
waiting now over 10 minutes on actionpack-3.2.3 ri documentation to
install.

I am running Ruby 1.9.3. My machine is Windows 7 x64, 2500k (fast) with
8GB RAM.

I always have problems with documentation installs. Previously I got
loads of UTF-8 errors, wiped the whole thing and started again.

It's going on 15 minutes now for this and I think I am going to ctrl_c
it.

How come Ruby on Windows is such a mess? I use the proper windows
installer, but still it is a nightmare getting up and running on rails.

I have VM Workstation. Would it just be quicker running all this in a
virtual machine in Linux?

When I install new GEMs the ri doc installs are taking forever. I am
waiting now over 10 minutes on actionpack-3.2.3 ri documentation to
install.

I am running Ruby 1.9.3. My machine is Windows 7 x64, 2500k (fast) with
8GB RAM.

I always have problems with documentation installs. Previously I got
loads of UTF-8 errors, wiped the whole thing and started again.

It's going on 15 minutes now for this and I think I am going to ctrl_c
it.

A couple suggestions...

Make sure you are using the gem version of rdoc. A lot of work has gone into it to make it better. I'm not sure how much of that effort is specifically towards making it more performant, but a lot of it is just general cleanup which will help regardless.

Eric Hodel is the current maintainer of rdoc. He doesn't use windows so he can't look into this for you. It would help if you could submit to him as much data as you can (like, if you can run rdoc under the profiler that'd really help... do so on a smaller(ish) gem tho. :slight_smile: That said, see below. There are some things he simply can't address...

How come Ruby on Windows is such a mess? I use the proper windows
installer, but still it is a nightmare getting up and running on rails.

I know that ruby used to have a bug on windows wrt Dir.glob and a couple other things being REALLY slow. I think that's been addressed but I don't know of those patches made it into 1.9.3 or not. You should find the work that Luis Lavena has done on the windows installer. It might have the patches applied.

I have VM Workstation. Would it just be quicker running all this in a
virtual machine in Linux?

Haha! Um... Virtual machines... yes. Linux not so much. RVM wouldn't be half as popular without the mess that linux has made for the ruby community. I'd recommend FreeBSD personally.... but if you do go the linux route, DEFINITELY use rvm instead of the package system's ruby.

···

On Apr 20, 2012, at 12:21 , Kevin McCaughey wrote:

Kevin McCaughey wrote in post #1057616:

Hi,

When I install new GEMs the ri doc installs are taking forever. I am
waiting now over 10 minutes on actionpack-3.2.3 ri documentation to
install.

I am running Ruby 1.9.3. My machine is Windows 7 x64, 2500k (fast) with
8GB RAM.

I always have problems with documentation installs. Previously I got
loads of UTF-8 errors, wiped the whole thing and started again.

What version of 1.9.3 are you using? There was a very important IO
related fix that landed in 1.9.3-p125:

  http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/42686

I don't know whether it helps ri as I disabled ri for gem installs a
long time ago. I go straight to the source or one of the online
doc sites.

BTW, we provide CHM docs (core, stdlib) as part of the RubyInstaller
downloads

  Downloads

It's going on 15 minutes now for this and I think I am going to ctrl_c
it.

How come Ruby on Windows is such a mess? I use the proper windows
installer, but still it is a nightmare getting up and running on rails.

Specifically, what's "..such a mess" with Ruby on Windows? If you're
using the RubyInstaller from http://rubyinstaller.org/ drop us a line at
http://groups.google.com/group/rubyinstaller

Luis Lavena, myself, and the other contributors have solved many of the
key problem areas, and certain ruby-core committers are continuing to
solve Windows-specific issues as we find and report them. In addition,
many gem authors (such as the ones behind Nokogiri, Thin, EventMachine,
SQLite3, GTK2, FFI, etc) provide binary gems for RubyInstaller users and
work hard to actively maintain them.

And have you checked out our DevKit build toolchain that makes your life
*much* easier when dealing with native gems that don't have a mingw
binary version?

  Development Kit · oneclick/rubyinstaller Wiki · GitHub

If you're using JRuby on Windows, the situation and support is very
good.

I've never used http://railsinstaller.org/ as I don't seem to have the
nightmare some have with installing rails on windows, but it certainly
looks like it could help those who do.

I have VM Workstation. Would it just be quicker running all this in a
virtual machine in Linux?

I use VirtualBox to run Arch, Ubuntu Server, and FreeBSD on my Win7
32bit box. Even with my slow laptop with only 4GB I find things very
stable and powerful.

That said, I really would like to hear specifics from you over at our
http://groups.google.com/group/rubyinstaller ML. Perhaps it's a
configuration issue or something we've already solved. Or maybe you've
found a new issue that needs fixing.

Jon

···

--
Posted via http://www.ruby-forum.com/\.

It's going on 15 minutes now for this and I think I am going to ctrl_c
it.

"Good things come to those who wait."

How come Ruby on Windows is such a mess? I use the proper windows
installer, but still it is a nightmare getting up and running on rails.

Is there a virus scanner running on that Windows box? If so which one?

Kind regards

robert

···

On Fri, Apr 20, 2012 at 9:21 PM, Kevin McCaughey <lists@ruby-forum.com> wrote:

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/