Ruby.h没有这样的文件或目录解析器.o错误

时间:2012-07-07 14:03:49

标签: ruby

使用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;

1 个答案:

答案 0 :(得分:-1)

你需要安装ruby开发工具包,因为Windows正在根据缺少Ruby.h的错误寻找Ruby的源代码