# Ruby 1.8.5-24 rubyw does not work

**URL:** <https://www.ruby-forum.com/t/ruby-1-8-5-24-rubyw-does-not-work/87716>\
**Category:** Ruby\
**Created:** [March 5, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-24-rubyw-does-not-work/87716 "2007-03-05T15:35:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a183cd/32.png) [@ctyu](https://www.ruby-forum.com/u/ctyu)\
**Post date:** [March 5, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-24-rubyw-does-not-work/87716/1 "2007-03-05T15:35:44Z")

</div>

Hi All

rubyw hasnt worked for me since first release 1.8.5

Does anyone has the same problem?

ctyu

---

<div class="post-metadata">

**Author:** ![ctyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a183cd/32.png) [@ctyu](https://www.ruby-forum.com/u/ctyu)\
**Post date:** [March 5, 2007, 4:06pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-24-rubyw-does-not-work/87716/2 "2007-03-05T16:06:49Z")

</div>

On 3/5/07, ctyu [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi All
> 
> rubyw hasnt worked for me since first release 1.8.5
> 
> Does anyone has the same problem?

Ok, first I wanted to write an essay how to report bugs… 😉 then  
i’ve found tyour bug already filed.

So, I suppose your problem is that when running under rubyw you don’t  
have console/stdout etc. That means puts cannot possibly work - it  
doesn’t have anything to write to.

---

<div class="post-metadata">

**Author:** ![ctyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a183cd/32.png) [@ctyu](https://www.ruby-forum.com/u/ctyu)\
**Post date:** [March 5, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-24-rubyw-does-not-work/87716/3 "2007-03-05T16:57:00Z")

</div>

On 5 mar, 12:04, “Jan S.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> So, I suppose your problem is that when running under rubyw you don’t  
> have console/stdout etc. That means puts cannot possibly work - it  
> doesn’t have anything to write to.

Hi Jan,

I also have a script that starts a webrick, and it also does not work,  
but works under 1.8.4-20.

I submitted bug when first release 1.8.5 came out. Thought it was  
fixed

Thanks  
ctyu

---

<div class="post-metadata">

**Author:** ![ctyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a183cd/32.png) [@ctyu](https://www.ruby-forum.com/u/ctyu)\
**Post date:** [March 5, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-24-rubyw-does-not-work/87716/4 "2007-03-05T17:42:11Z")

</div>

> > Ok, first I wanted to write an essay how to report bugs…  
> > I also have a script that starts a webrick, and it also does not work,  
> > but works under 1.8.4-20.
> 
> I submitted bug when first release 1.8.5 came out. Thought it was  
> fixed

I think what Jan was trying to say about reporting bugs is that if you  
don’t describe the problem and ideally provide some code to illustrate  
your point, you have very little chance of receiving a satisfying  
answer.

---

<div class="post-metadata">

**Author:** ![ctyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a183cd/32.png) [@ctyu](https://www.ruby-forum.com/u/ctyu)\
**Post date:** [March 5, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-24-rubyw-does-not-work/87716/5 "2007-03-05T19:55:35Z")

</div>

On 5 mar, 13:41, “Tim B.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> answer.  
> Hi All

Thanks for the responses.

The test script below works fine in 1.8.4 (ruby/rubyw) and 1.8.5  
(ruby.exe)

But in 1.8.5 (rubyw) it doesnt work and it also doesnt show up at  
process list.

My system is WinXP SP2 Brazilian-Portuguese, with fresh intall of  
ruby-1.8.5-24 one click installer

== a.rbw ==  
require “webrick”

server = WEBrick::HTTPServer.new(:Port=\>1234)

server.mount\_proc(“/hello”) do |req,resp|  
resp[‘Content-Type’] = “text/html”  
resp.body = “

hello

”  
end

trap(“INT”){server.shutdown}

# server.start
