libgit2/rugged — Issue #43: Unable to install rugged under Windows 7
Author: mliebelt
Created: 2012-03-04 12:48:43+00:00
State: open

I have tried the last few hours to install rugged under windows 7 but failed. Here is the setup:

* ruby.exe is in the path
* DevKit is installed and found
* When I run `gem install rugged` it fails with the following output:

C:\apps\ruby\libgit2\build>gem install rugged
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing rugged:
ERROR: Failed to build gem native extension.
...
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

In the mentioned mkmf.log, I find the following lines at the end:

"make -f Makefile.embed"
cc -g -I. -Isrc -Iinclude -Ideps/http-parser -Ideps/zlib -DNO_VIZ -DSTDC -DNO_GZIP -D_FILE_OFFSET_BITS=64 -Wall - Wextra -fPIC -O2 -c -o src/blob.o src/blob.c
make: cc: Command not found
make: *** [src/blob.o] Error 127

What Do I have to do / to install to fix that error for me?