【发布时间】:2013-04-11 05:04:23
【问题描述】:
我在安装 RVM 时遇到错误,我已经使用 brew 安装了 Ruby 2.0.0,现在我正在尝试在 http://www.rvm.io 上运行 RVM 命令
Error running './configure --prefix=/Users/name/.rvm/rubies/ruby-2.0.0-p0 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libxml2:/usr/local/opt/libxslt:/usr/local/opt/libksba:/usr/local/opt/openssl:/usr/local/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared',
please read /Users/name/.rvm/log/ruby-2.0.0-p0/configure.log
There has been an error while running configure. Halting the installation.
这就是我的日志的样子
[2013-04-10 21:50:21] ./configure
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... i386-apple-darwin12.3.0
checking host system type... i386-apple-darwin12.3.0
checking target system type... i386-apple-darwin12.3.0
checking for gcc-4.2... no
checking for clang... no
checking for gcc... no
checking for cc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/Users/name/.rvm/src/ruby-2.0.0-p0':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
我也安装了 Xcode。
【问题讨论】:
-
一般都是用 RVM 安装 ruby,有没有先通过 homebrew 安装的原因?
-
你有安装命令工具吗?
-
@DanFairaizl 嗯,因为我在 ruby 网站上看到 mac osx 可以直接进行 brew install。
-
@fmendez 我会试着看看我是否安装了它......编辑:我还没有安装它,根据下面 Jorge 的回答。我现在就去做!