2011-10-28 19 views
1

私はFXRuby gemをインストールしようとしています。 Mac OS 10.7でRubyとFoxをHomebrewと一緒にインストールしましたが、それを動作させる方法を理解できません。誰もいますか?FXRuby Gemのインストール

相続人は私が受け取ったエラープリントアウト:

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

'mkmf.logファイルで詳細を確認してください.' mkmf.logが役に立ちます。 –

+0

http://lylejohnson.name/blog/2008/03/28/one-step-installation-for-fxruby-on-mac-os-x/ –

+0

投稿を編集してプリントアウトしました。 – NickTFried

答えて

3

を私は同じ問題を抱えていたし、このコマンドはそれを修正:

sudo apt-get install libfox-1.6-dev 
+0

Macで 'sudo apt-get'ですか?皆さんもその質問を読んでいますか? – toriningen

4

FOXツールキットは、上のインストールされていないため、エラーが発生しましたあなたのマシン。 FXRubyはFOXグラフィカルツールキットへのRubyインターフェースですので、最初にFOXをマシンにインストールする必要があります。 Mac OS X用の依存関係をインストールします

brew install fox 

これを実行します。

libpng, freetype, jpeg, libtiff 

は、その後、私はヨセミテ(OS X 10.10)とfxrubyの宝石のバージョン1.6を使用していますfxruby宝石に

gem install fxruby 

をインストールします。 28私のシステムに正常にインストールされます

+0

私はキツネをインストールする前に 'brew tap homebrew/x11'をしなければなりませんでした。 – Jared

関連する問題