尝试在 Mac 上安装 Ruby 时出现配置问题

发布于 2025-01-08 08:40:41 字数 619 浏览 5 评论 0原文

当我运行 rvm install ruby​​-1.9.3 时,在配置

Error running ' ./configure --prefix=/Users/robbor911/.rvm/rubies/ruby- 时收到此错误消息1.9.3-p125 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/robbor911/.rvm/usr ',请阅读/Users/robbor911/.rvm/log/ruby-1.9.3-p125/configure.log 运行配置时出现错误。停止安装。

到目前为止,有关此问题的所有帖子都告诉用户下载 XCode 并安装它,但我已经安装了它 - 它甚至运行成功。

据我所知,我的问题与终端无法找到下载所需的编译器有关。

我什至设法在 Xcode/Contents/Developer/usr/binXode/Contents/Developer/usr/llvm-gcc-4.2/bin 找到编译器

有谁知道为什么当我安装 XCode 时,我的编译器没有正确设置,或者我如何手动纠正这个问题?

When I run rvm install ruby-1.9.3, I get this error message when configuring

Error running ' ./configure --prefix=/Users/robbor911/.rvm/rubies/ruby-1.9.3-p125 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/robbor911/.rvm/usr ', please read /Users/robbor911/.rvm/log/ruby-1.9.3-p125/configure.log
There has been an error while running configure. Halting the installation.

All posts on this issue so far tell users to download XCode and install it, but I have it installed-- it even runs successfully.

From what I've gather, my problem has something to do with the terminal unable to locate the compiler's necessary for the download.

I even managed to locate the compilers at Xcode/Contents/Developer/usr/bin and Xode/Contents/Developer/usr/llvm-gcc-4.2/bin

Does anyone know why, when I installed XCode, my compilers weren't set up properly or how I can manually correct this issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

山有枢 2025-01-15 08:40:41

我前几天刚刚遇到这个问题。我能够让它运行的方式:

1)我下载并安装了 这个 软件包GitHub。

2)运行rvm get head && rvm 重新加载 && rvm reinstall 1.9.3

对我有用。运行操作系统 Lion 10.7

I just ran across this issue the other day. The way I was able to get it running:

1) I downloaded and installed this package from Github.

2) ran rvm get head && rvm reload && rvm reinstall 1.9.3

Worked for me. Running OS Lion 10.7

蛮可爱 2025-01-15 08:40:41

Xcode 4.3 默认不再安装命令行工具。您可以从 Xcode 首选项的“下载”窗格中安装它们。

Xcode 4.3 no longer installs the command-line tools by default. You can install them from the Downloads pane in Xcode's preferences.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文