[Rubyinstaller-devel] INSTALL suggestion

Roger Pack rogerdpack at gmail.com
Wed May 6 15:11:10 EDT 2009

> I'm willing to reupload the file if you want to provide a better
> INSTALL.txt file?

I'm not sure if this is "INSTALL.txt" material or material for
index.html, but here it is:
quick install instructions (1.8.6, 1.9):

unzip a {1.8.6,1.9}.7z file somewhere

rename/move it to c:\Ruby

c:\Ruby has

then unzip the devkit and move its contents into the same folder
(devkit is a bundled up mingw GCC+msys).


c:\Ruby now has

(note: the message "This folder already contains a folder named bin"
is expected--choose "yes" to confirm folder replace).

next add c:\Ruby\bin to the beginning of your path and enjoy the power
of a faster ruby with a compiler.

==Detailed instructions==

Same as above--however, if you want to use a folder other than c:\Ruby
then please change devkit/msys/1.0.11/etc/fstab to properly point to
the right directories for mingw and /usr/local

How to add ruby\bin to your path:
either do this on the command line thus:
set PATH=c:\ruby-1.9.1-p0-i386-mingw32\bin;%PATH%

or change the PATH variable within my computer -> properties ->
advanced -> environment variables (add it to the front of path within
"system variables").

== How to determine success ==
If successful you should get an output like (for 1.8):

C:\>ruby -v
ruby 1.8.6 (2009-03-31 patchlevel 368) [i386-mingw32]

C:\>gcc -v
Reading specs from C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/specs

and installing binary gems should work properly:
C:\>gem install eventmachine
Building native extensions.  This could take a while...
Successfully installed eventmachine-0.12.6

If a gem fails to compile because of lack of headers, you can most
times get away with doing a
gem install gemname --platform=mswin32
to install msvc binaries for it.  They are *typically* compatible.

=The rubyinstaller team


More information about the Rubyinstaller-devel mailing list