2011-07-31 11 views
1

をインストール(Macを使用して)次のように表示されます:私のRubyでこのエラーを修正することは、私はルビーに新たなんだし、それが実行するために取得しようと、私は、私はこのメッセージを取得しないとき

Installing sqlite3 (1.3.4) with native extensions /Library/Ruby/Site/1.8/rubygems/installer.rb:551:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

どうすればこの問題を解決できますか?私はしばらくの間、グーグルでてきたが、それを把握することができていない、と私はこれが正常に実行する必要がhereから=ブラウザ上で自分のアプリケーションを参照するには/

+0

私は、AppStoreからのXcodeをダウンロードして、私のLeopardのDVDが帰っているサーバーの障害 –

+0

チェックhttp://stackoverflow.com/questions/6853046/error-installing-sqlite3-gem-via-bundler/6862534#6862534 –

答えて

1

「サーバーのレール」:

Can't find header files for ruby

If you get the can't find header files for ruby error message when trying to build an extension or a gem, it means that Ruby cannot locate its header files.

Header files are not delivered by default with Mac OS X, you need to install the Xcode Tools package after the installation. You can find it in the Optional Installs/Xcode Tools directory on the Leopard DVD.

これは、システムにRubyヘッダファイルがないことです。それらをインストールするには、Xcode Toolsパッケージをインストールする必要があります。

+0

に属しています(私は国外にいる)私はそれをインストールできる別の方法はありますか? – Tsundoku

+0

私はあなたに何か非常に面白いとクールをお勧めします:[rvm](https://rvm.beginrescueend.com/)。最初はちょっとした作業のように思えるかもしれませんが、それでも十分です。http://www.blog.bridgeutopiaweb.com/post/how-to-install-rvm-and-rails-3-on-snow-leopard/ –

+0

ok、質問、私はそれを使用してもXcodeツールをインストールしますか? (申し訳ありませんが、私は完全なRuby n00bですが、私はちょっと頭に浮かんでいます。) – Tsundoku

関連する問題