# Mac vs Windows -- app works in Mac and not in Windows

**URL:** <https://www.ruby-forum.com/t/mac-vs-windows-app-works-in-mac-and-not-in-windows/73590>\
**Category:** Rails\
**Created:** [October 25, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/mac-vs-windows-app-works-in-mac-and-not-in-windows/73590 "2006-10-25T15:37:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 25, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/mac-vs-windows-app-works-in-mac-and-not-in-windows/73590/1 "2006-10-25T15:37:31Z")

</div>

Does anyone know why an application would work on Mac and not on  
Windows? When I attempt to start WEBrick it tries to start and then it  
just hangs. There is no error message. Is there a way to debug to get  
further information?

Thanks

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 25, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/mac-vs-windows-app-works-in-mac-and-not-in-windows/73590/2 "2006-10-25T15:57:34Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Does anyone know why an application would work on Mac and not on  
> Windows? When I attempt to start WEBrick it tries to start and then it  
> just hangs. There is no error message. Is there a way to debug to get  
> further information?
> 
> Thanks

I’d start by going through your source files and changing any tabs to  
spaces. Ruby on windows seems to have trouble with those…

\_Kevin

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 25, 2006, 4:33pm UTC](https://www.ruby-forum.com/t/mac-vs-windows-app-works-in-mac-and-not-in-windows/73590/3 "2006-10-25T16:33:15Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Does anyone know why an application would work on Mac and not on  
> Windows? When I attempt to start WEBrick it tries to start and then it  
> just hangs. There is no error message. Is there a way to debug to get  
> further information?
> 
> Thanks

Are you going through InstantRails on Windows? I’ve had a lot of  
problems with both WEBrick and the bundled Apahce/SCGI server not  
starting or hanging using that.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 25, 2006, 5:23pm UTC](https://www.ruby-forum.com/t/mac-vs-windows-app-works-in-mac-and-not-in-windows/73590/4 "2006-10-25T17:23:53Z")

</div>

I did try InstantRails, but the same results. CMD prompt opens to start  
Mongrel and then crashes. No error messages. Is there a system log that  
would offer more details or does it just die?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 26, 2006, 5:40pm UTC](https://www.ruby-forum.com/t/mac-vs-windows-app-works-in-mac-and-not-in-windows/73590/5 "2006-10-26T17:40:14Z")

</div>

On 10/25/06, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > further information?  
> > > Open a ruby console window through Instant Rails (this ensures that  
> > > IR’s ruby\bin directory is on the path), navigate to the root of your  
> > > rails app, and run the command:

“mongrel\_rails start -B”

then look for the log file in your Rails app’s “log” subdirectory.

Curt

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 26, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/mac-vs-windows-app-works-in-mac-and-not-in-windows/73590/6 "2006-10-26T19:17:16Z")

</div>

Sound likes your mac has the rcss gem installed and the windows machine  
doesn’t

Fred

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 26, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/mac-vs-windows-app-works-in-mac-and-not-in-windows/73590/7 "2006-10-26T20:10:33Z")

</div>

I read some of the other posts which suggest tabs can also be a problem  
in Windows. Hopefully a best practices document will be created to  
remind developers of those known issues moving from one OS to another.

After replacing the tabs with spaces in the .rb, I was able to get to a  
new set of error messages when i started WEBrick. It turns out there  
are two gems used by the application that are not included with the RoR  
Windows installation:

```
* rcss (gem install rcss)
* redcloth (gem install redcloth)

```

It works now 🙂

Thanks All!

On Oct 26, 1:17 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [October 26, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/mac-vs-windows-app-works-in-mac-and-not-in-windows/73590/8 "2006-10-26T18:14:18Z")

</div>

Thanks Curt,

## I ended up trying it both with ruby script/console for WEBrick and your suggestion with Instant Rails and I come back to the same error message:

## c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `gem_original_re quire': no such file to load -- rcss (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`re quire’ from ./script/…/config/…/config/environment.rb:9 from c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `re quire' from c:/ruby/lib/ruby/1.8/irb/init.rb:252:in`load\_modules’ from c:/ruby/lib/ruby/1.8/irb/init.rb:250:in `load_modules' from c:/ruby/lib/ruby/1.8/irb/init.rb:21:in`setup’ from c:/ruby/lib/ruby/1.8/irb.rb:54:in `start’ from c:/ruby/bin/irb.bat:20

Thanks Again
