我以前看过很多关于此的帖子,并且已经按照他们的指示行事,但没有任何工作.我将在下面概述我所做的事情以及我所遵循的指示 - 对任何建议都会感激不尽!
我遵循了以下安装说明:http: //pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac
我已经下载了OSX Mountain Lion的X代码,并安装了gcc编译器:
$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Run Code Online (Sandbox Code Playgroud)
然后我按照指示完成并安装了最新版本的git
$ git --version
git version 1.7.10.2 (Apple Git-33)
Run Code Online (Sandbox Code Playgroud)
并通过命令行用rvm完成相同的操作:
$ rvm --version
rvm 1.16.13 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> …
Run Code Online (Sandbox Code Playgroud)