【发布时间】:2012-08-27 19:09:20
【问题描述】:
我在 Mac OS X Lion 上运行了 Ruby 1.9.3(我不得不使用 RVM,因为正常的家庭 brew 安装不起作用),然后安装 Mountain Lion(或其后续更新)导致 Ruby 1.9.3 无法运行不再安装 + 所有 gem 都已卸载,我又回到了 Ruby 1.8.7
我安装了最新的 XCode 版本 (4.4.1),我尝试了来自类似 StackOverflow 问题的多个不同建议,但均未成功。
我想要的是一个全新的开始(如果可能的话),我想获得有关如何完全卸载我安装的任何与 Ruby 和 RVM 相关的垃圾并重新开始的建议!那么也许我可以在安装 Ruby 1.9.3 方面获得帮助
但我可以告诉你我目前正在做的事情正在失败......
执行
ruby -v会导致ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]执行
rvm -v导致rvm 1.15.7 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]执行
brew upgrade ruby会导致:http://pastebin.com/KetSau7k执行
rvm install 1.9.3会导致:http://pastebin.com/8YKg4wXb - 当我按下q退出时,它会继续尝试安装并失败...
将 Ruby 从源安装到:/Users/markmcdonnell/.rvm/rubies/ruby-1.9.3-p194,这可能需要一段时间,具体取决于您的 cpu...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracted to /Users/markmcdonnell/.rvm/src/ruby-1.9.3-p194 (already extracted)
ruby-1.9.3-p194 - #configuring
Error running ' ./configure --prefix=/Users/markmcdonnell/.rvm/rubies/ruby-1.9.3-p194 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/markmcdonnell/.rvm/usr ', please read /Users/markmcdonnell/.rvm/log/ruby-1.9.3-p194/configure.log
There has been an error while running configure. Halting the installation.
- 我也尝试过
rvm install 1.9.3 --with-gcc=clang,但是在您已经看到的初始消息之后(我按q退出消息并继续安装)然后它告诉我You requested building with 'clang' but it is not in your path.
我还安装了许多其他的东西,并执行了一些命令来尝试安装这个破烂的 Ruby 1.9.3,但没有一个起作用 - 因此我认为我可能需要从头开始(如果可能的话?)。
任何安装此工具的帮助(以及一些清理工作)以及对不太了解 Bash/CLI 的人的解释将不胜感激!
谢谢。
【问题讨论】:
-
这个问题在apple.stackexchange.com 上发布时可能会引起更多关注。
-
你有安装 xcode 的命令行工具吗?
标签: ruby bash installation rvm ruby-1.9.3