2015-01-15 3 views
3

Я установил ruby ​​1.9.3 по команде rvm install 1.9.3 на терминале Mac. Я получил эти ошибки (см. Ниже) после установки. Есть ли у кого-нибудь идеи для решения этой проблемы?Проблемы с установкой ruby ​​1.9.3

Error running './configure --prefix=/Users/Keta/.rvm/rubies/ruby-1.9.3-p551 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared', showing last 15 lines of /Users/Keta/.rvm/log/1421301212_ruby-1.9.3-p551/configure.log GEM_HOME=/Users/Keta/.rvm/gems/ruby-2.2.0 PATH=/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/Keta/.rvm/gems/ruby-2.2.0/bin:/Users/Keta/.rvm/gems/[email protected]/bin:/Users/Keta/.rvm/rubies/ruby-2.2.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/Users/Keta/.rvm/bin GEM_PATH=/Users/Keta/.rvm/gems/ruby-2.2.0:/Users/Keta/.rvm/gems/[email protected] command(7): ./configure --prefix=/Users/Keta/.rvm/rubies/ruby-1.9.3-p551 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared configure: WARNING: unrecognized options: --without-tcl, --without-tk checking build system type... x86_64-apple-darwin14.0.0 checking host system type... x86_64-apple-darwin14.0.0 checking target system type... x86_64-apple-darwin14.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/Keta/.rvm/src/ruby-1.9.3-p551': configure: error: cannot run C compiled programs. If you meant to cross compile, use --host'. See `config.log' for more details
There has been an error while running configure. Halting the installation.

+0

Похоже, что он пытается перекрестно скомпилировать, что является содержимым /Users/Keta/.rvm/src/ruby -1.9.3-p551? – philant

+0

@philant есть много файлов, и они представляют собой различные типы файлов. –

+0

Посмотрел ли config.log? – philant

ответ

6

Это очищено для меня после того, как я побежал xcode-select --install. До этого я также запустил rvm get head, который, возможно, внес свой вклад (но сам по себе не устранил проблему).

+0

Я просто попробовал 'xcode-select --install' после 'rvm получить стабильный' и отлично работает здесь –

Смежные вопросы