简体   繁体   English

安装RVM遇到配置错误

[英]Installing RVM getting errors with configure

I'm getting errors installing RVM, I have installed Ruby 2.0.0 with brew, and now I'm trying to run the RVM command at http://www.rvm.io 我在安装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.

This is what my log looks like 这是我的日志的样子

[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

I have Xcode installed too. 我也安装了Xcode。

Do you have Xcode installed? 您是否已安装Xcode? You then have to go into its preference window to install the command line tools. 然后,您必须进入其首选项窗口以安装命令行工具。 Take a look at this question . 看一下这个问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM