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

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

[email protected] 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

[email protected] 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.

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?

On 10/25/06, [email protected] [email protected] 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

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

Fred

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 :slight_smile:

Thanks All!

On Oct 26, 1:17 pm, Frederick C. [email protected]

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:inre
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:inload_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:insetup’
from c:/ruby/lib/ruby/1.8/irb.rb:54:in `start’
from c:/ruby/bin/irb.bat:20

Thanks Again

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs