gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

FnordMetric installation issue on Windows: sys/socket.h: No such file or directory #57

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by adisutanto Thursday May 30, 2013 at 03:06 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/146


I tried to install fnordmetric on my windows laptop but encountered error:

net.c:35:24: fatal error: sys/socket.h: No such file or directory

Detail:

C:\Sites>gem install fnordmetric
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing fnordmetric:
        ERROR: Failed to build gem native extension.

        C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
gcc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c
net.c:1:0: warning: -fPIC ignored for target (all code is position independent)
net.c:35:24: fatal error: sys/socket.h: No such file or directory
compilation terminated.
make: *** [net.o] Error 1
creating Makefile

make
generating hiredis_ext-i386-mingw32.def
compiling connection.c
connection.c:1:24: fatal error: sys/socket.h: No such file or directory
compilation terminated.
make: *** [connection.o] Error 1

Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/hiredis-0.4.5 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/hiredis-0.4.5/ext/hiredis_ext/gem_make.out

My environment: