【发布时间】:2012-03-08 13:53:49
【问题描述】:
从头开始重建 Mac。安装了 xcode 和 rvm 然后尝试安装 rubies 但它们都给了我:
Error running ' ./configure --prefix=/Users/durrantm/.rvm/rubies/ruby-1.9.3-p125
--enable-shared --disable-install-doc --with-libyaml
--with-opt-dir=/Users/durrantm/.rvm/usr ',
please read /Users/durrantm/.rvm/log/ruby-1.9.3-p125/configure.log
There has been an error while running configure. Halting the installation.
Michaels-MacBook-Air:~ durrantm$
日志有:
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/Users/durrantm/.rvm/src/ruby-1.9.2-p290':
configure: error: no acceptable C compiler found in $PATH
我需要 gcc C 编译器吗?如何安装?
【问题讨论】:
-
是的。看来你需要某种 c 编译器,而你没有。
-
XCode 包括 GCC;也许你的
$PATH被冲洗掉了?
标签: ruby xcode gcc compiler-errors rvm