osx mavericks にアップグレードしたばかりで、ruby 2.0 をインストールしたいのですが、configure: error: cannot run C compiled programs.
エラーが発生します。
rvm を更新して入力するrvm get stable
とrvm install 2.0.0
、ログ ファイルに誘導するエラーが表示されます。ログ ファイルには次の内容が含まれます。
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking target system type... x86_64-apple-darwin13.0.0
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/Users/mattroberts/.rvm/src/ruby-2.0.0-p247':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
そこで、私が持っているバージョンをリストしてみました。それは私が持っていることを教えてくれる1.9.3-p392
ので、それをアンインストールして再インストールして、それが機能するかどうかを確認します-同じエラー。
xcode を再インストール/更新する必要がありますか、それとも別の解決策がありますか?
ありがとう!