使用Rails 3.1和新应用程序,当运行bundle install
时出现以下错误
Installing json<1.7.3> with native extensions
Error: Failed to build gem native extension.
Creating Makefile
generating parser-i386-mingw32.def
compiling parser.c
In file included from parser.rl:1:0:../fbuffer/fbuffer.h:6:18: fatal error: ruby.h: No such file or directory
compilation terminated.
make: *** [parser.o] Error 1
我已成功安装DevKit并更改$PATH
,如下所示:
C:\Users\peter\Downloads\make-3.81-bin\bin;
C:\Users\peter\Working\Ruby-devKit\mingw\bin;
C:\Users\peter\Working\Ruby-devKit;
C:\Program Files\ImageMagick-6.7.8-Q16;
C:\Ruby193\bin;C:\Ruby\bin;
答案 0 :(得分:-1)
你需要安装ruby开发工具包,因为Windows正在根据缺少Ruby.h的错误寻找Ruby的源代码