RVM中的配置错误

我试图下载红宝石1.9.3(用于学习的目的,这是本书中的版本)当我运行$rvm install 1.9.3出现配置错误:

运行'./configure --prefix = / Users / john / .rvm / rubies / ruby​​-1.9.3-p545 --with-opt-dir = / usr / local / Cellar / libyaml / 0.1.6时出错:/ usr /local/Cellar/readline/6.3.3:/usr/local/Cellar/libksba/1.3.0:/usr/local/Cellar/openssl/1.0.1g --without-tcl --without-tk --disable- install-doc --enable-shared',显示/Users/john/.rvm/log/1398181983_ruby-1.9.3-p545/configure.log的最后15行

然后最后15行是:

[2014-04-22 10:53:15] ./configure
current path: /Users/john/.rvm/src/ruby-1.9.3-p545
PATH=/usr/local/Cellar/pkg-config/0.28/bin:/usr/local/Cellar/libtool/2.4.2/bin:/usr/local/Cellar/automake/1.14.1/bin:/usr/local/Cellar/autoconf/2.69/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/john/.rvm/bin:/Users/john/.rvm/bin
command(7): ./configure --prefix=/Users/john/.rvm/rubies/ruby-1.9.3-p545 --with-opt-dir=/usr/local/Cellar/libyaml/0.1.6:/usr/local/Cellar/readline/6.3.3:/usr/local/Cellar/libksba/1.3.0:/usr/local/Cellar/openssl/1.0.1g --without-tcl --without-tk --disable-install-doc --enable-shared
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... i386-apple-darwin13.1.0
checking host system type... i386-apple-darwin13.1.0
checking target system type... i386-apple-darwin13.1.0
checking whether the C compiler works... no
configure: error: in `/Users/john/.rvm/src/ruby-1.9.3-p545':
configure: error: C compiler cannot create executables

有人知道这里有什么问题吗? 由于我是新人,我假设它是简单的...

提前致谢!


问题与c compliers。 你应该做的

sudo apt-get install clang && rvm install 1.9.3 --with-gcc = clang

链接地址: http://www.djcxy.com/p/59209.html

上一篇: configuration error in RVM

下一篇: Installing Ruby 2.0.0 using RVM with errors in configure