我正在尝试安装FXRuby gem。我在MacOS10.7上安装了Ruby和Fox和Homebrew,但我不知道如何让它工作。有没有人?
下面是我收到的错误打印输出:
gem install fxruby
Building native extensions. This could take a while...
ERROR: Error installing fxruby:
ERROR: Failed to build gem native extension.
/usr/local/Cellar/ruby/1.9.2-p290/bin/ruby extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/Cellar/ruby/1.9.2-p290/bin/ruby
--with-fox-dir
--without-fox-dir
--with-fox-include
--without-fox-include=${fox-dir}/include
--with-fox-lib
--without-fox-lib=${fox-dir}/lib
--with-fxscintilla-dir
--without-fxscintilla-dir
--with-fxscintilla-include
--without-fxscintilla-include=${fxscintilla-dir}/include
--with-fxscintilla-lib
--without-fxscintilla-lib=${fxscintilla-dir}/lib
extconf.rb:31:in `find_installed_fox_version': couldn't find FOX header files (RuntimeError)
from extconf.rb:125:in `<main>'
发布于 2014-11-13 19:24:52
发生此错误是因为您的计算机上未安装FOX工具包。FXRuby是FOX图形工具包的Ruby接口,因此需要先在机器上安装FOX。对于Mac OS X执行
brew install fox
这将安装依赖项:
libpng, freetype, jpeg, libtiff
然后安装fxruby gem
gem install fxruby
我正在使用yosemite (OS X 10.10)和fxruby gem 1.6.28版在我的系统上成功安装
发布于 2013-08-06 23:45:38
我也有同样的问题,下面的命令解决了这个问题:
sudo apt-get install libfox-1.6-dev
https://stackoverflow.com/questions/7926568
复制相似问题