无法在Mac 10.9.2上安装fxruby

时间:2014-04-18 19:14:30

标签: ruby-on-rails ruby macos

我使用自制软件成功安装了狐狸库。 当我尝试sudo gem install fxruby时,它失败了。 错误消息如下所示。

Building native extensions.  This could take a while...
ERROR:  Error installing fxruby:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for sys/time.h... yes
checking for signal.h... yes
checking for deflate() in -lz... yes
checking for png_create_read_struct() in -lpng... yes
checking for jpeg_mem_init() in -ljpeg... no
checking for TIFFSetErrorHandler() in -ltiff... no
checking for XftInit() in -lXft... yes
checking for XShmQueryVersion() in -lXext... yes
checking for XFindContext() in -lX11... yes
checking for glXCreateContext() in -lGL... yes
checking for gluNewQuadric() in -lGLU... yes
checking for FXRbCommon.h in ./include... no
creating Makefile

make "DESTDIR="
compiling librb.c
compiling core_wrap.cpp
core_wrap.cpp:593:10: fatal error: 'FXRbCommon.h' file not found
#include "FXRbCommon.h"
         ^
1 error generated.
make: *** [core_wrap.o] Error 1


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/fxruby-1.6.28 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/fxruby-1.6.28/ext/fox16_c/gem_make.out

1 个答案:

答案 0 :(得分:0)

我遇到了完全相同的问题(Mac 10.9.3)并遵循https://github.com/larskanis/fxruby/issues/7上的建议(实际参考了Debian安装)

这基本上是为了尝试 sudo gem install fxruby - --with-cppflags = -I ./include

为我工作

希望它有所帮助。