I'm building a simple web app on Sinatra that I can deploy like a gem to artifactory; to start with I'm getting everything setup. Here's what I've done:
- I've got the the gemspec done so I can deploy like a gem
- I've got sinatra modular set up with a basic 'hello world' page
- I've got Rspec setup for testing (hello world test passes)
- I've got rake tasks to make things easier (booting up sinatra, building the gem, running tests, etc) Now I need to move Sinatra from Webrick to somthing a bit more robust and that's this is where I'm hitting a wall.
I've tried Unicorn,thin and Puma but they all won't install and I don't know what to do. They all fail at Building Native extensions, I don't know what to do.
I'm using windows 8.1 (i'd rather be doing this on ubuntu but the company uses windows and to be honest I like a challenge) ruby 2.1 and I have devkit installed (and it's working now, wouldn't last night).
From what I've read Unicorn won't work on windows so the best bet is to go with thin but that fails with: extconf.rb
checking for main() in -lc... *** extconf.rb failed ***
It mentions that I need the devkit installed (it is the first line is Temporarily enhancing PATH to include DevKit...
)
Despite this it fails, I tried doing what I found in this but that didn't help ( Installing event machine didn't do anything).
I'm at a loss of what to do next.
EDIT: Whilst I've solved the problem of getting Thin to install it now has a differant error IT can't load eventmachine.
EDIT: It all comes down to the fact that the Devkit wasn't being recognised or it didn't install properly or something. I wonder why.