has anyone seen this message using 1.9.1 on windows.
I used the ruby 1.9.1-p378 and rails 2.3.5. I run in verbose mode and
it shows the message
"#<Errno::ENOENT: No such file or directory - /dev/null>"
I saw a suggestion on how to fix this in a a news group that was
"Replace All occurences of /dev/null in all files in your ruby
directory with C:\\NUL."
At first I thought they were joking, but I tried it. No luck. It did
however get me thinking and poking at things and what I found was this
file
C:\Ruby\lib\ruby\gems\1.9.1\gems\activesupport-2.3.5\lib\active_support
\core_ext\kernel\reporting.rb
line 59
stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
that if I changed it to
stream.reopen(RUBY_PLATFORM =~ /mingw|mswin/ ? 'NUL:' : '/dev/
null')
it solved my problem.
Has something to do with my setting of RUBY_PLATFORM
C:\agility>irb
irb(main):001:0> RUBY_PLATFORM
=> "i386-mingw32"
Not sure why it returns that instead of mswin
There is some comments from Luis Lavena in infoQ that seems to point
out that this is a potential issue to be seen in other spots.
http://www.infoq.com/news/2009/08/ruby-installer
I do not really know what to do with this information, but I thought I
would post it here in case anyone has the same problem and it can save
them some grief.
--Bob
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.