Project

General

Profile

fcgi install issues on Windows 7

Added by James McNally about 10 years ago

Hi All,

I have an existing redmine installation under Ubuntu but am in the process of getting it onto an IT supported server. As part of this we also need some software that must run under Windows so we decided to migrate to Windows OS for everything and come up to more recent versions.

I have battled and battled and this is where I am, I have:

Environment:
Redmine version 2.4.1.stable
Ruby version 1.9.3-p484 (2013-11-22) [i386-mingw32]
Rails version 3.2.15
Environment production
Database adapter Mysql2

The database is successfully migrated and upgraded and it all works with webrick. What I cannot get to work is fastCGI with Apache. The Apache calls are being made as if I break the shebang line I get an error.

To troubleshoot I ran ruby dispatch.fcgi from the command line and found some issues culiminating in missing the fcgi gem however when I install I get:

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing fcgi:
        ERROR: Failed to build gem native extension.

        C:/Ruby193/bin/ruby.exe extconf.rb
checking for fcgiapp.h... no
checking for fastcgi/fcgiapp.h... no

make
make: *** No targets.  Stop.

From other forums I have found people response basically being it is impossible to run this gem under Windows. Does anyone know any workarounds?

Alternatively what is the easiest way to get this running under windows. I am considering:
  • Using Mongrel but this requires a downgrade to a lower rails version.
  • Using the bitnami stack so long as I can bring my database into here. Concerned about how nicely this will play with other server applications though.
  • Any way to fall back to using CGI? From what I have read this would involve a downgrade though but please correct me if I'm wrong.

Does anyone have any advice?