hello, I'm trying to use fnordmetric gem for ruby app
i tried to follow the instruction, but have this error at the first time :(
$ 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.
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
os : win7 64bit
hello, I'm trying to use fnordmetric gem for ruby app
i tried to follow the instruction, but have this error at the first time :(
$ 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.
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
Any good solution?