尝试在 Mac 上安装 Ruby 时出现配置问题
当我运行 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/bin
和 Xode/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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我前几天刚刚遇到这个问题。我能够让它运行的方式:
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
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.