我用自制软件成功地安装了狐狸库。当我尝试sudo安装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
发布于 2014-07-05 19:32:14
我遇到了完全相同的问题(Mac10.9.3),并遵循了关于https://github.com/larskanis/fxruby/issues/7的建议(实际上参考了Debian安装)
这主要是为了尝试安装fxruby
为我工作
希望能帮上忙。
https://stackoverflow.com/questions/23160684
复制相似问题