gpt4 book ai didi

ruby - 安装 RVM 使用配置时出现错误

转载 作者:数据小太阳 更新时间:2023-10-29 08:32:44 25 4
gpt4 key购买 nike

我在安装 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。

最佳答案

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

关于ruby - 安装 RVM 使用配置时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15941115/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com