我剛升級到osx小牛,我想安裝ruby 2.0,但我得到configure: error: cannot run C compiled programs.
錯誤。在特拉維夫安裝任何版本的RVM與RVM
我更新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,還是有另一種解決方案?
謝謝!
你試試這個:http://stackoverflow.com/questions/8813889/rvm-ruby-installation-errors-mac/10593275#10593275 – knoight