安装 ruby 1.9.3 时遇到问题

Having problems installing ruby 1.9.3

我在 mac 的终端上通过命令 rvm install 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/ruby-2.2.0@global/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/ruby-2.2.0@global 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.

在我 运行 xcode-select --install 之后,这为我清除了。在此之前,我也 运行 rvm get head 可能有所贡献(但本身并没有解决问题。)