我已经在以前运行 lion 的 mac 上安装了 rails,其内部结构与我试图安装它的计算机相同。无论我以何种方式尝试通过 RVM 在我的 comp 上获取 rails,它都会提示我需要安装 libksba,所以我通过 mac 端口进行了尝试,当我尝试使用 mac 端口时说如果我使用 port 命令,我应该删除 xcode .
我尝试的命令如下:
curl -L https://get.rvm.io | bash -s stable
port install libksba
rvm install 1.9.3 --with-gcc=clang
rvm use 1.9.3 --default
最后一个命令是我收到错误消息的地方。如果有人知道获得铁轨的可靠方法,我将永远非常满意!
编辑* *我最终安装了自制软件并卸载了 macports 并通过它安装了 libksba,但是当我返回并尝试通过 rvm 安装 1.9.3 时,它给了我这个消息。
Ruby (and needed base gems) for your selection will be installed shortly.Before it happens, please read and execute the instructions below. Please use a separate terminal to execute any additional commands.
Notes for Mac OS X 10.7.5, 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::