【发布时间】:2012-12-26 17:05:06
【问题描述】:
我正在尝试安装 ruby 1.9.3 并且此代码继续运行。我已经安装了 libksba,但无法通过请帮帮我
MarioVMtz$ rvm install ruby-1.9.3-p362
Notes for Mac OS X 10.8.2, Xcode 4.5.2.
For JRuby: Install the JDK. See http://developer.apple.com/java/download/ # Current Java version "1.6.0_26"
For IronRuby: Install Mono >= 2.6
For Ruby 1.9.3: Install libksba # If using Homebrew, 'brew install libksba'
For Opal: Install Nodejs with NPM. See http://nodejs.org/download/
To use an RVM installed Ruby as default, instead of the system ruby:
rvm install 1.8.7 # installs patch 357: closest supported version
rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system.gems # migrate your gems
rvm alias create default 1.8.7
And reopen your terminal windows.
Xcode and gcc:
Right now Ruby requires gcc to compile, but Xcode 4.2 and later no longer ship with gcc. Instead they ship with llvm-gcc (to which gcc is a symlink) and clang, neither of which are supported for building Ruby. Xcode 4.1 was the last version to ship gcc, which was /usr/bin/gcc-4.2.
:
【问题讨论】:
-
真的很难理解你在问什么,因为你的文本混合了可能是代码响应的内容。请花时间使用内置的Markdown formatting options 重新格式化您的问题,并删除不必要的文本。包括您收到的任何错误消息。
-
最近几天我看到了几个关于在 OS X 上使用 RVM 安装 Ruby 的问题。请检查stackoverflow.com/questions/14022151/… 和更多向后。几个月前,我在 Mountain Lion 上安装了几个带有 RVM 的 rubies。这并不像文档声称的那么容易。不幸的是,我不记得我必须做什么才能让它工作。 Xcode 4.1 ???没有回忆。祝你好运。