Errors with shotgun gem and msvcrt-ruby18.dll when running my Sinatra app

Posted by Adam Siddhi on Stack Overflow See other posts from Stack Overflow or by Adam Siddhi
Published on 2010-05-14T01:17:41Z Indexed on 2010/05/14 1:24 UTC
Read the original article Hit count: 743

Filed under:
|
|
|
|

Greetings,

Every time I make a change to a Sinatra app I'm working on and try to refresh the browser (located at http://localhost:4567/) the browser will refresh and, the console window seems to restart the WEB brick server. The problem is that the content in the browser window does not change.

A friend of mine told me it was a shotgun issue and referred me to rtomayko's shotgun gem:

http://github.com/rtomayko/shotgun

On this page I read that the shotgun gem would basically solve my problem, allowing the changes made to my app to show up in the browser window after I refresh it. So I installed the shotgun gem. The installation was successful. To activate the shotgun function you have to type shotgun before the file name. In this case my Sinatra app's file name is shortener.rb

When I type shotgun shortener.rb to run my Sinatra app I get this error:

C:\ruby\sinatra>shotgun shortener.rb c:/Ruby19/lib/ruby/gems/1.9.1/gems/shotgun-0.6/bin/shotgun:137:in `': No such f ile or directory - uname (Errno::ENOENT) from c:/Ruby19/lib/ruby/gems/1.9.1/gems/shotgun-0.6/bin/shotgun:137:in block in ' from c:/Ruby19/lib/ruby/gems/1.9.1/gems/shotgun-0.6/bin/shotgun:136:in each' from c:/Ruby19/lib/ruby/gems/1.9.1/gems/shotgun-0.6/bin/shotgun:136:in find' from c:/Ruby19/lib/ruby/gems/1.9.1/gems/shotgun-0.6/bin/shotgun:136:in <top (required)>' from c:/Ruby19/bin/shotgun:19:inload' from c:/Ruby19/bin/shotgun:19:in `'

I should also mention that before testing the shotgun method out to see if it worked, I installed the mongrel (I realize I should have checked to see if shotgun worked before doing this as installing mongrel has complicated this problem). So on top of getting the error message above I also get a pop up window from Ruby.exe saying:

Ruby.exe - Unable to load component This application has failed to start because msvcrt-ruby18.dll was not found. Re-installing the application may fix this problem.

I have no idea what msvcrt-ruby18.dll is but I know that installing either shotgun and/or mongrel created this problem.

Where to go from here?

Thanks, Adam

© Stack Overflow or respective owner

Related posts about sinatra

Related posts about ruby