Я только что обновился до osx mavericks, и я хочу установить ruby 2.0, но я получаю configure: error: cannot run C compiled programs.
ошибок.Установите любую версию ruby с RVM на mavericks
Обновляю 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