New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running on windows #54
Comments
I have honestly never used Ruby on Windows :) I'll try to help, but I'm traveling so I don't have a windows instance handy to test this on. Do you mind trying something for me? Edit
|
Looks like your app won't work on windows because of a dependency. I looked further into this and the vegas gem doesn't work with windows. In one of vegas' source files it said to do 'gem install win32-process' but then the daemon wasn't working and found that they have given up on making it work with windows: Maybe you can use a different gem for that job because genghis is awesome but I use windows as well. At least it works on my macbook. |
From that issue, it looks like it's just daemonization that is broken on windows. If you run it in the foreground ( Regardless, if that's the issue you're running into, it should still work mounted in rack. Try the rack instructions? https://github.com/bobthecow/genghis#in-an-existing-rack-app |
Awesome, running genghisapp -F fixed everything! Thanks! |
Thanks for your help tracking this down. As of the next release, |
So just curious how does this tell that its running on Windows. I am trying to get this up and running on windows 8 and am running into these errors even with the -F flag |
i386-mingw32 is what it is set to. As a side note I was able to set it up as a Rack app. I had never set up a Rack app so didn't know that it was that easy. For those that read this later just drop the config.ru in a directory and run the command "rackup config.ru" from the directory and you are good to go. |
Oh, there's also this one: ruby `gem which genghis` :) |
if it's |
wait. is that how you say "interpolate the output of this command" in windows? i don't remember. |
C:/Ruby193/lib/ruby/gems/1.9.1/gems/genghisapp-2.1.6/./genghis.rb |
On *nix shells the backticks make it interpolate the result of the "which" call, but I don't know how to do that on Windows. It's the same as running:
|
Leonas commentedNov 10, 2012
This gem install fine but when I run it, I get the following error:
$ genghisapp
c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require': cannot load such file -
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in
require' from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:8:in
top (required)'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/genghisapp-2.1.3/bin/genghisapp:11:in `top (required)
'
from c:/RailsInstaller/Ruby1.9.3/bin/genghisapp:19:in 'load'
from c:/RailsInstaller/Ruby1.9.3/bin/genghisapp:19:in 'main'
The text was updated successfully, but these errors were encountered: