Windows Ruby FastCGI notes

Just a few notes from working on supporting FastCGI on windows:
  • fcgi.rb is not compatible with Windows.
    • Simple incompatiblities include trapping undefined symbols on Windows.
    • $stdin is not always a socket on fastcgi on windows, so wrapping $stdin.fileno doesn't work
    • libfcgi has OS dependent code to handle various windows cases

  • compiling libfcgi for windows is difficult
    • Makefiles have a few syntax errors with nmake
    • assembling a free compiler enviroment on windows is a pain
      • MS VC Toolkit
      • MS Platform SDK
      • MS.Net SDK
      • ... or buy MS Visual Studio


  • isapi_fastcgi has alternate version of libfcgi, but with Visual studio build files (.dsp)

So I guess I need to get Visual Studio to properly support Fastcgi on windows.



~ Patrick May