bobthecow / genghis

The single-file MongoDB admin app
http://genghisapp.com
MIT License
1.45k stars 166 forks source link

Windows installation problems #161

Open branneman opened 10 years ago

branneman commented 10 years ago

After a lot of trying, I found I needed exactly these steps on Windows before I got Genghis to run:

  1. Install Ruby 2, x64
    inside a directory without spaces
  2. Install Ruby DevKit, instructions here
    inside a directory without spaces
  3. Install extra dependencies:

    gem install genghis
    gem install windows-pr
    gem install win32-process.
  4. Run Genghis:

    genghisapp
  5. Open http://localhost:5678/ if it's not opened automatically.

Thoughts?

bobthecow commented 10 years ago

Honestly, you got a lot farther than I ever did. I always just gave up and used the PHP version on Windows :)

Want to add a wiki page about it?

branneman commented 10 years ago

Done :) You might want to link to this page from your root level readme.md maybe, so it's easier to find for Windows users. I myself normally don't check the wiki but tend to read the readme and just google it.

https://github.com/bobthecow/genghis/wiki/Howto-install-Genghis-on-Windows

branneman commented 10 years ago

One quick-fix you can already do, is of course add the gems windows-pr and win32-process as dependencies, so they're installed automatically whenever someone does gem install genghis

bobthecow commented 10 years ago

Unfortunately it looks like there's still no way to add platform-specific gem dependencies without requiring them for everyone else, so I won't be doing that.

I think the accepted way to do this is to created a separate version of the gem especially for Windows users. Because they're special ;) I'll look into that.

bobthecow commented 10 years ago

Okay, I just pushed a change that lets me build and push windows-specific gems. Those gems will have dependencies win32-process and windows-pr, so we could drop number 3 from the instructions above (after the next release).