# RE: moving from linux to windows woes

**URL:** <https://www.ruby-forum.com/t/re-moving-from-linux-to-windows-woes/47993>\
**Category:** Rails\
**Created:** [November 15, 2005, 8:37pm UTC](https://www.ruby-forum.com/t/re-moving-from-linux-to-windows-woes/47993 "2005-11-15T20:37:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HOGANBP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HOGANBP](https://www.ruby-forum.com/u/HOGANBP)\
**Post date:** [November 15, 2005, 8:37pm UTC](https://www.ruby-forum.com/t/re-moving-from-linux-to-windows-woes/47993/1 "2005-11-15T20:37:10Z")

</div>

My guess is that the shebang line in your dispatch.rb / dispatch.cgi /  
dispatch.fcgi are all still pointing to your linux ruby location  
/usr/bin/ruby or something like that.

Change them to c:/ruby/bin/ruby.exe and see if it works.

(This really ticks me off that we have to do this and I wish the rails  
folks would come up with a workaround.)

-bph

---

<div class="post-metadata">

**Author:** ![HOGANBP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HOGANBP](https://www.ruby-forum.com/u/HOGANBP)\
**Post date:** [November 15, 2005, 8:40pm UTC](https://www.ruby-forum.com/t/re-moving-from-linux-to-windows-woes/47993/2 "2005-11-15T20:40:11Z")

</div>

On 11/15/05, Hogan, Brian P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> My guess is that the shebang line in your dispatch.rb / dispatch.cgi /  
> dispatch.fcgi are all still pointing to your linux ruby location  
> /usr/bin/ruby or something like that.
> 
> Change them to c:/ruby/bin/ruby.exe and see if it works.
> 
> (This really ticks me off that we have to do this and I wish the rails  
> folks would come up with a workaround.)
> 
> -bph

here’s a workaround:

ruby script/server

–  
rick  
[http://techno-weenie.net](http://techno-weenie.net)

---

<div class="post-metadata">

**Author:** ![HOGANBP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HOGANBP](https://www.ruby-forum.com/u/HOGANBP)\
**Post date:** [November 15, 2005, 8:49pm UTC](https://www.ruby-forum.com/t/re-moving-from-linux-to-windows-woes/47993/3 "2005-11-15T20:49:20Z")

</div>

Rick O. wrote:

> > folks would come up with a workaround.)
> > 
> > -bph
> 
> here’s a workaround:
> 
> ruby script/server

A workaround for…? This is the standard command for starting Webrick  
with your webapp. ruby script/server and ruby script\server both give me  
the same result.

I have overwritten the dispatch files so they include the proper shebang  
line…

Jeroen

---

<div class="post-metadata">

**Author:** ![HOGANBP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HOGANBP](https://www.ruby-forum.com/u/HOGANBP)\
**Post date:** [November 15, 2005, 8:58pm UTC](https://www.ruby-forum.com/t/re-moving-from-linux-to-windows-woes/47993/4 "2005-11-15T20:58:25Z")

</div>

> A workaround for…? This is the standard command for starting Webrick  
> with your webapp. ruby script/server and ruby script\server both give me  
> the same result.
> 
> I have overwritten the dispatch files so they include the proper shebang  
> line…

I was actually referring to the email I quoted that mentioned the  
shebang lines…

Seems like you’re experiencing a hard crash somewhere if it’s just  
dumping you back to the console with no output. Does a standard rails  
app start correctly? Does script/console work? Have you checked your  
error logs?

–  
rick  
[http://techno-weenie.net](http://techno-weenie.net)
