No such file or directory - config.yml (Errno::ENOENT)

1,188 views
Skip to first unread message

Gayle

unread,
Oct 7, 2010, 2:36:50 AM10/7/10
to RubyInstaller
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

James Cowlishaw

unread,
Oct 7, 2010, 6:25:38 AM10/7/10
to rubyin...@googlegroups.com
Hi Gayle,

I suspect you missed the paragraph below which actually details the DevKit install procedure.
Do a page search for ruby dk.rb init on the link you gave (http://github.com/oneclick/rubyinstaller/wiki/Development-Kit).

Following the detailed step 4 instructions should get you going.

James.


--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.


pete

unread,
Oct 7, 2010, 1:08:48 PM10/7/10
to rubyin...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.


"- 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?"

This is done by design by ruby 1.9.2. It's mentioned in the release notes for 1.9.2, but is still pretty confusing: http://www.ruby-lang.org/en/news/2010/08/18/ruby-1-9-2-is-released/

pete

Gayle

unread,
Oct 8, 2010, 12:01:06 AM10/8/10
to RubyInstaller
Thanks, James. It was the "detailed" step 4 that I missed. I saw the
numbered list and thought that *was* the instructions. Hey, it got me
most of the way :) Sorry I missed the fact that that was just the
"Installation overview" and didn't see the details below.

Thanks for the help. I've got it all working now! This is awesome.

Gayle

unread,
Oct 8, 2010, 12:02:12 AM10/8/10
to RubyInstaller
Thanks for the info Pete. That is confusing, but I see it's not an
issue. Thanks!
Reply all
Reply to author
Forward
0 new messages