安装 FXRuby Gem

发布于 2024-12-12 20:20:35 字数 1406 浏览 0 评论 0原文

我正在尝试安装 FXRuby gem。我已经在 Mac OS 10.7 上使用 Homebrew 安装了 Ruby 和 Fox,但我不知道如何让它工作。有人吗?

这是我收到的错误打印输出:

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>'

I'm trying to install the FXRuby gem. I've installed Ruby and Fox with Homebrew on Mac OS 10.7 and I can't figure out how to make it work. Has anyone?

Heres the error print out I have received:

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>'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

苦笑流年记忆 2024-12-19 20:20:35

发生该错误的原因是您的计算机上未安装 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 在我的系统上成功安装

The error was occurring because the FOX toolkit was not installed on Your machine. FXRuby is a Ruby interface to the FOX graphical toolkit, so therefore requires FOX to be installed on the machine first. For Mac OS X execute

brew install fox 

This will install dependencies:

libpng, freetype, jpeg, libtiff

Then install fxruby gem

gem install fxruby

I am using yosemite (OS X 10.10) and fxruby gem version 1.6.28 get installed successfully on my system

口干舌燥 2024-12-19 20:20:35

我遇到了同样的问题,这个命令解决了它:

sudo apt-get install libfox-1.6-dev

I had the same problem and this command fixed it:

sudo apt-get install libfox-1.6-dev
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文