5

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

1 回答 1

0

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

于 2013-12-06T20:58:40.843 回答