Summary

The title is pretty self explanatory, but to expand on it. I'm trying to install ruby 2.2.9 on windows via cygwin 2.10.0(0.325/5/3) using RVM 1.29.7 (master). The process configures, fine but during the build it just crashes. Heres the compile log. It specifically fails on compiling hash.c with ERROR_ENVVAR_NOT_FOUND.

Attempts

  • I've reconfigured git to not auto convert carriage returns. This had no affect.
  • I tried installing 2.2.10 instead, had the same problem.
  • I tried updating rvm, but this wasn't the problem (I only installed it yesterday).

Can someone tell me whats the problem here? ERROR_ENVVAR_NOT_FOUND doesn't really tell me what environment it wants me to set.

Edit 01:

In response to @ChrisJBreisch I've navigated to my CYGWin folder & found w32api.h and added to the github gist linked to by the compile log above. I also tested this out by creating a c script and trying to compile it.

    #include <stdio.h>                                      
    #include <stdlib.h>                                     
    #include <w32api.h>                                     

    int main() {                                            
        printf("Value: %04d\n", ERROR_ENVVAR_NOT_FOUND);
        exit(0);                                        
    }                                                       

What I've found is that w32api.h doesn't define the ERROR_ENVVAR_NOT_FOUND macro. I navigated to the public cygwin repo and found the w32api.h file and it doesn't appear to define it either. If I comment out the printf statement in the above code block, it compiles perfectly fine. So I don't think w32api.h is the problem here.

Also, I don't appear to have a /usr/include folder. I have a /usr/{bin,etc,lib,libexec,share,ssl} but no includes folder.

0 Answers