代码之家  ›  专栏  ›  技术社区  ›  hellomello

安装RVM时出现配置错误

  •  2
  • hellomello  · 技术社区  · 13 年前

    我在安装RVM时遇到错误,我已经安装了带有brew的Ruby 2.0.0,现在我正试图在 http://www.rvm.io

    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。

    1 回复  |  直到 13 年前
        1
  •  5
  •   Community Mohan Dere    9 年前

    你安装了Xcode吗?然后,您必须进入它的首选项窗口来安装命令行工具。看看 this question .