以致出现如下错误,望各位大大帮忙
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
D:/Software/ruby/bin/ruby.exe extconf.rb
0 [main] sh 7192 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
0 [main] sh 9144 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c
/bin/sh: -pedantic: command not found
make: [net.o] Error 127 (ignored)
std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb hiredis.c
/bin/sh: -pedantic: command not found
make: [hiredis.o] Error 127 (ignored)
std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb sds.c
/bin/sh: -pedantic: command not found
make: [sds.o] Error 127 (ignored)
std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb async.c
/bin/sh: -pedantic: command not found
make: [async.o] Error 127 (ignored)
ar rcs libhiredis.a net.o hiredis.o sds.o async.o
D:\Software\ruby\DevKit\mingw\bin\ar.exe: net.o: No such file or directory
make: *** [libhiredis.a] 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 D:/Software/ruby/lib/ruby/gems/1.9.1/gems/hiredis-0.4.5 for inspection.
Results logged to D:/Software/ruby/lib/ruby/gems/1.9.1/gems/hiredis-0.4.5/ext/hiredis_ext/gem_make.out
An error occurred while installing hiredis (0.4.5), and Bundler cannot continue.
Make sure that `gem install hiredis -v '0.4.5'` succeeds before bundling.