Hi! I've been doing Ruby/Rails development on Windows XP/7 for over 2
years professionally now. I just got a new machine at home and
decided to try out the new ruby installer and DevKit. I like what I'm
seeing so far. But I'm having a little trouble w/ the DevKit
instructions on
http://github.com/oneclick/rubyinstaller/wiki/Development-Kit
I searched this Google Group, among other places, and didn't find an
answer yet. I'm happy to update the wiki instructions if there's some
information out there that I just missed. Like you, I believe that a
smoother Windows experience will only help mainstream Ruby adoption.
And I'm happy to help if I can.
Meanwhile, here's some background info, what I've tried so far, and
the problem I'm struggling with here...
- I'm on 64 bit Windows 7 Ultimate
- I tried this installation twice so far.
a. The first time using rubyinstaller-1.9.1-p430.exe with
DevKit-3.4.5-20100819-1535-sfx.exe
b. The second time I uninstalled the stuff created the first time,
then used rubyinstaller-1.9.2-p0.exe with DevKit-4.5.0-20100819-1536-
sfx.exe
- Each time I checked the box to put the ruby\bin directory (i.e. c:
\Ruby191\bin or c:\Ruby192\bin) in my %PATH%
- Each time I extracted DevKit to a directory with no spaces according
to Step 3
- after this install, "gem -v" showed me having version 1.3.7
- Step 4 says "Run the DevKit’s dk.rb install helper script to enhance
your installed Rubies." So I CD'd to c:\DevKit and ran "dk.rb
install"
a. The first time I got error "C:/Ruby191/lib/ruby/1.9.1/yaml.rb:
143:in `initialize': No such file or directory - config.yml
(Errno::ENOENT)"
b. The second time I got a very similar error C:/Ruby192/lib/ruby/
1.9.1/syck.rb:145:in `initialize': No such file or directory -
config.yml (Errno::ENOENT)
- Not surprisingly, if I skip to step 5 despite errors in Step 4, I
get an error:
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.
.. snip ..
C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed
to generate an executable file. (RuntimeError) You have to install
development tools first.
In Summary
- Tell me about config.yml? Do I need to create it, and if so is
there a separate command to generate it? Or do I have to create it
myself, if so where do I put it?
- It seems weird that after I ran the ruby 1.9.2 installer, it made a
directory c:\Ruby192\lib\ruby\1.9.1 (192 base dir seems right, 1.9.1
subdir seems wrong). Is that significant? What might cause that?
- Would be nice to have a link in the step on the wiki "Did previous
step fail? Please let us know!" either a link to
http://groups.google.com/group/rubyinstaller/ or a mailto link to
rubyin...@googlegroups.com. I'm happy to change the wiki there
too.
Thanks for any help or ideas you have for me!
Gayle Craig