2015-01-15 5 views
3

Mac의 터미널에 rvm install 1.9.3 명령으로 ruby ​​1.9.3을 설치했습니다. 설치 후 이러한 오류가 발생합니다 (아래 참조). 아무도이 문제를 해결할 아이디어가 있습니까?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 get stable '을 실행하고 여기서 잘 작동합니다. –

관련 문제