【问题标题】:Installing RVM getting errors with configure安装 RVM 时出现配置错误
【发布时间】: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 的回答。我现在就去做!

标签: ruby macos rvm


【解决方案1】:

你有安装 Xcode 吗?然后,您必须进入其首选项窗口以安装命令行工具。看看this question

【讨论】:

  • 谢谢!我还没有安装它,所以看起来......我会安装它,然后检查RVM是否会再次工作。
  • 这行得通,但我遇到了 ruby​​gems 问题,我想这是另一个要问的问题。
  • @andrewliu 我确实同意。不过很高兴我能帮助解决这个问题。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-11-29
  • 1970-01-01
  • 1970-01-01
  • 2014-10-04
  • 1970-01-01
相关资源
最近更新 更多