From: Alpha Blue on
1. Downloaded Installer from (
-- rubyinstaller-1.9.1-p243-rc1.exe
2. Right-click (run as administrator) and execute.
3. Install Directory is Ruby19 and options for add/associate are

Installation finished

C:\Users\Joel>ruby -v

ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]


PATH=C:\Ruby19\bin;C:\Program Files (x86)\Common Files\Business
NOTES\;C:\Program Files (x86)\Common Files\Business
wamp\bin\mysql\mysql5.1.36\bin;C:\Tcl\bin;C:\zlib;C:\Program Files
;C:\Program Files (x86)\SWiSH
ll\v1.0\;C:\OpenSSL\;C:\OpenSSL\bin;C:\Program Files
C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files
(x86)\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files (x86)\jruby-1.4.0\bin

Note that I use many different versions of Ruby so the new installation
does not remove the old ruby paths still set. This could create issues
later on but for now I'm going to leave everything the way it is.

C:\Users\Joel>gem env
RubyGems Environment:
- RUBY VERSION: 1.9.1 (2009-07-16 patchlevel 243) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/Ruby19/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: C:/Ruby19/bin/ruby.exe
- ruby
- x86-mingw32
- C:/Ruby19/lib/ruby/gems/1.9.1
- C:/Users/Joel/.gem/ruby/1.9.1
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["",

Note that the sources are already set correctly. If they weren't set,
I'd have added manually.

C:\Users\Joel>gem list

*** LOCAL GEMS ***

No gems are listed.

Performing "gem update --system"

Updating RubyGems
Nothing to update

Performing "gem -v"

Okay, so far so good. Everything is fine so far.

(Installation of Gems commencing)

Installing Rails First

C:\Users\Joel>gem install rails
Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.5
Successfully installed activerecord-2.3.5
Successfully installed rack-1.0.1
Successfully installed actionpack-2.3.5
Successfully installed actionmailer-2.3.5
Successfully installed activeresource-2.3.5
Successfully installed rails-2.3.5
8 gems installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for activesupport-2.3.5...
Installing ri documentation for activerecord-2.3.5...
Installing ri documentation for rack-1.0.1...
Installing ri documentation for actionpack-2.3.5...
Installing ri documentation for actionmailer-2.3.5...
Installing ri documentation for activeresource-2.3.5...
Installing ri documentation for rails-2.3.5...
Updating class cache with 0 classes...
Installing RDoc documentation for rake-0.8.7...
Installing RDoc documentation for activesupport-2.3.5...
Installing RDoc documentation for activerecord-2.3.5...
Installing RDoc documentation for rack-1.0.1...
Installing RDoc documentation for actionpack-2.3.5...
Installing RDoc documentation for actionmailer-2.3.5...
Installing RDoc documentation for activeresource-2.3.5...
Installing RDoc documentation for rails-2.3.5...

Installing Rack or you will receive an error when launching rails
because it's not using the correct version.

C:\Users\Joel>gem install rack
Successfully installed rack-1.1.0
1 gem installed
Installing ri documentation for rack-1.1.0...
Updating class cache with 1030 classes...
Installing RDoc documentation for rack-1.1.0...

Installing Mongrel so I have an appropriate server, other than WEBrick.

C:\Users\Joel>gem install mongrel
Successfully installed gem_plugin-0.2.3
Successfully installed cgi_multipart_eof_fix-2.5.0
Successfully installed mongrel-1.1.5-x86-mingw32
3 gems installed
Installing ri documentation for gem_plugin-0.2.3...
Installing ri documentation for cgi_multipart_eof_fix-2.5.0...
Installing ri documentation for mongrel-1.1.5-x86-mingw32...
Updating class cache with 1035 classes...
Installing RDoc documentation for gem_plugin-0.2.3...
Installing RDoc documentation for cgi_multipart_eof_fix-2.5.0...
Installing RDoc documentation for mongrel-1.1.5-x86-mingw32...

Installing MySQL

C:\Users\Joel>gem install mysql
Successfully installed mysql-2.8.1-x86-mingw32
1 gem installed
Installing ri documentation for mysql-2.8.1-x86-mingw32...
Updating class cache with 1085 classes...
Installing RDoc documentation for mysql-2.8.1-x86-mingw32...

Performing some quick tests to make sure these gems are all compatible
since I didn't provide platform dependencies (note that I'm using

C:\Users\Joel>gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
cgi_multipart_eof_fix (2.5.0)
gem_plugin (0.2.3)
mongrel (1.1.5)
mysql (2.8.1)
rack (1.1.0, 1.0.1)
rails (2.3.5)
rake (0.8.7)

irb(main):001:0> require "mysql"
=> true

Mysql is fine..

irb(main):001:0> require "rack"
=> true

Rack is fine..

irb(main):001:0> require "mongrel"
] Segmentation fault
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]

-- control frame ----------
c:0028 p:-13491064 s:0096 b:0096 l:000095 d:000095 TOP
c:0027 p:---- s:0094 b:0094 l:000093 d:000093 CFUNC :require
c:0026 p:0095 s:0090 b:0090 l:000089 d:000089 TOP
c:0025 p:---- s:0088 b:0088 l:000087 d:000087 FINISH
c:0024 p:---- s:0086 b:0086 l:000085 d:000085 CFUNC :require
c:0023 p:0011 s:0082 b:0082 l:0002f4 d:0006cc EVAL (irb):1
c:0022 p:---- s:0080 b:0080 l:000079 d:000079 FINISH
c:0021 p:---- s:0078 b:0078 l:000077 d:000077 CFUNC :eval
c:0020 p:0027 s:0071 b:0071 l:000070 d:000070 METHOD
c:0019 p:0031 s:0064 b:0063 l:000062 d:000062 METHOD
c:0018 p:0030 s:0058 b:0058 l:00042c d:000057 BLOCK
c:0017 p:0037 s:0050 b:0050 l:000049 d:000049 METHOD
c:0016 p:0011 s:0045 b:0045 l:00042c d:000044 BLOCK
c:0015 p:0132 s:0041 b:0041 l:000024 d:000040 BLOCK
c:0014 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0013 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC :loop
c:0012 p:0009 s:0033 b:0033 l:000024 d:000032 BLOCK
c:0011 p:---- s:0031 b:0031 l:000030 d:000030 FINISH
c:0010 p:---- s:0029 b:0029 l:000028 d:000028 CFUNC :catch
c:0009 p:0023 s:0025 b:0025 l:000024 d:000024 METHOD
c:0008 p:0042 s:0022 b:0022 l:00042c d:00042c METHOD
c:0007 p:0011 s:0019 b:0019 l:0024ac d:000018 BLOCK
c:0006 p:---- s:0017 b:0017 l:000016 d:000016 FINISH
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC :catch
c:0004 p:0172 s:0011 b:0011 l:0024ac d:0024ac METHOD
c:0003 p:0039 s:0006 b:0006 l:001d4c d:0002cc EVAL
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001d4c d:001d4c TOP
-- Ruby level backtrace
n `require'
n `<top (required)>'
(irb):1:in `require'
(irb):1:in `irb_binding'
C:/Ruby19/lib/ruby/1.9.1/irb/workspace.rb:80:in `eval'
C:/Ruby19/lib/ruby/1.9.1/irb/workspace.rb:80:in `evaluate'
C:/Ruby19/lib/ruby/1.9.1/irb/context.rb:218:in `evaluate'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:149:in `block (2 levels) in eval_input'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:263:in `signal_status'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:146:in `block in eval_input'
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:244:in `block (2 levels) in
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in `loop'
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in `block in
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `catch'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:145:in `eval_input'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:69:in `block in start'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:68:in `catch'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:68:in `start'
C:/Ruby19/bin/irb:12:in `<main>'

You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details:

This application has requested the Runtime to terminate it in an unusual
Please contact the application's support team for more information.


Mongrel is not fine. Going to perform an uninstall of mongrel and try

C:\Users\Joel>gem uninstall mongrel
Remove executables:

in addition to the gem? [Yn] y
Removing mongrel_rails

You have requested to uninstall the gem:
rack-1.0.1 depends on [mongrel (>= 0)]
rack-1.1.0 depends on [mongrel (>= 0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] y
Successfully uninstalled mongrel-1.1.5-x86-mingw32


Reinstalling Mongrel

C:\Users\Joel>gem install mongrel --source
orm x86-ming32
Building native extensions. This could take a while...
ERROR: Error installing mongrel:
ERROR: Failed to build gem native extension.

C:/Ruby19/bin/ruby.exe extconf.rb
checking for main() in -lc... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

You have to install development tools first.

As you can see, a very long error appears with a nice message mixed into
it all saying I need to install development tools first. So, going to
install development tools.

So, I download the devkit from:

I unzip it and read the install file and it says to move it to the same
level as the ruby installation.

So I force copy and paste the entire contents to:

C:\Ruby19 and it pastes over the bin, adding the appropriate contents
and the new devkit folder is in there as well.

I re-run the mongrel installation:

C:\Users\Joel>gem install mongrel --source
orm x86-ming32
Building native extensions. This could take a while...
Successfully installed mongrel-1.1.6
1 gem installed
Installing ri documentation for mongrel-1.1.6...
Updating class cache with 1050 classes...
Installing RDoc documentation for mongrel-1.1.6...

Boom - perfect!


irb(main):001:0> require "mongrel"
=> true

Everything is now fine.

So, here's the post notes. The reason why I forced a platform specific
to x86-ming32 and not mswin is because when you run gem env it tells you
the gem platform you are using. With this particular install I'm using
ming so that's what I'll build with.

Hopefully you using these instructions will get you going now in the
right area. Everything looks fine for me now, even with the post
install hiccups.
Posted via

From: Sal on

> I'll build a new package with the one from Rubyforge on Win 7 and see if
> I encounter any similar issues.  Provide me a short list of gems you
> were trying to install as well.  I'll post my results.

Thanks, but I 'think' I have it resolved. WAS a permissions
issue. I realized that a "critical" windows 7 security update was
installed yesterday. Automatic updates was "magically" turned on again
for some reason.

After more digging, I noticed it had marked many of the directories in
my /User directory as read-only. After removing the read only
attribute I was able to install gems again. Gotta love Windows..... I
would really like to know exactly what it did.

Thanks to all for your help!

From: Alpha Blue on
I know the post above is a long one but it was necessary to showcase
some of the problems a person may encounter on windows. However, it's
all working fine with the same release that you are using.

My suggestions is for you to uninstall the current version of ruby you
are using and check your windows paths to ensure that no traces are left
of ruby or ruby 19.

Then download and install the latest ruby19 from the source I provided
(which is the same source you are using). Install the latest ruby19.
Download and install the latest devkit and unzip it and place it inside

The directory structure will be such:

Directory of C:\Ruby19

01/18/2010 09:02 AM <DIR> .
01/18/2010 09:02 AM <DIR> ..
01/18/2010 09:02 AM <DIR> bin
01/18/2010 09:02 AM <DIR> devkit
01/18/2010 08:28 AM <DIR> doc
01/18/2010 08:28 AM <DIR> include
04/11/2009 10:52 AM 304 INSTALL.txt
01/18/2010 08:28 AM <DIR> lib
01/18/2010 08:28 AM <DIR> share
01/18/2010 08:28 AM 126,093 unins000.dat
01/18/2010 08:26 AM 1,167,576 unins000.exe
01/18/2010 08:28 AM 20,709 unins000.msg
4 File(s) 1,314,682 bytes
8 Dir(s) 291,281,985,536 bytes free

Notice that the devkit is in the Ruby19 folder and the bin folder that
comes with the devkit is forceably copied over the Ruby19 bin which will
just add the contents into the bin directory.

Then, once you do this you can begin installing gems. Start with the
same ones I installed for starters and use the same options.

Always, always, always test your gems right after installation. You do
this by going to irb and then running a require "gemname" and if it's
good it will show => true. If it's bad it will show => false or give
you a lot of errors.

If you get a lot of errors like you saw I did with mongrel above, it
just needs to be built from source. With the devkit installed, you can
do just that.

Remember that when you need platform specific gems to declare it that

gem install "gemname" --platform x86-mingw32

If you need to install from a particular source, then include all of it
like I did with mongrel.

The big question that you might ask me later on is how did I know to use
that particular gem source? Well go visit and do
a search for the gem you want to download. People will give you the
info on what gems work and which gems don't and in this case, mongrel
had a good build listed at the following gem source I provided above.

I hope this helps you isolate and fix your issues now.
Posted via

From: Sal on

> Hopefully you using these instructions will get you going now in the
> right area.  Everything looks fine for me now, even with the post
> install hiccups.

Wow, thanks! I am going to need this because I want to use Mongrel!

From: Luis Lavena on
On Jan 18, 11:08 am, Alpha Blue <jdezen...(a)> wrote:
> 1.  Downloaded Installer from (
> -- rubyinstaller-1.9.1-p243-rc1.exe
> 2.  Right-click (run as administrator) and execute.
> 3.  Install Directory is Ruby19 and options for add/associate are
> checked.
> [...]
> C:\Users\Joel>irb
> irb(main):001:0> require "mongrel"
> C:/Ruby19/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5-x86-mingw32/lib/
> [BUG
> ] Segmentation fault
> ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
> Mongrel is not fine.  Going to perform an uninstall of mongrel and try
> dependencies..

Mongrel 1.1.5 has not been prepared for 1.9.1. Even more, the binary
version do not support both 1.8 and 1.9

I'm working on a release of 1.1.6 that support these versions.

As for the issue related to the installation process, seems you
resolved the permission issue that was associated with the directory.

Next version of RubyInstaller (rc2) will not require admin privileges
even if you are a member of Administrator group with UAC high.

Luis Lavena