2012-07-07 30 views
5

使用Rails 3.1和新的应用程序,当去跑bundle install我得到了我已成功安装的devkit以下错误Ruby.h没有这样的文件或目录parser.o错误

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 

,改变$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

空格被寻找的源代码的Ruby在某些情况下,开始奇怪的事情;)。也许重新安排或逃避确实有帮助? – jerik 2013-07-09 19:52:37

+0

我注意到你正在使用Windows。你使用RailsInstaller,还是只使用RubyInstaller和DevKit? – 2013-08-08 16:31:43

+0

你有任何文件ruby.h吗?如果你做一个手动的$ gem install json会怎么样? – rogerdpack 2013-08-08 17:04:27

回答

-1

您需要安装Ruby的开发工具包,因为Windows是基于错误失踪Ruby.h

相关问题