顶部当运行rbenv install 1.9.2-p320
,我得到下面的输出:OSX-GCC-安装过Xcode的
ERROR: This package must be compiled with GCC, but ruby-build couldn't find a suitable
gcc
executable on your system. Please install GCC and try again.DETAILS: Apple no longer includes the official GCC compiler with Xcode as of version 4.2. Instead, the
gcc
executable is a symlink tollvm-gcc
, a modified version of GCC which outputs LLVM bytecode.For most programs the
llvm-gcc
compiler works fine. However, versions of Ruby older than 1.9.3-p125 are incompatible withllvm-gcc
. To build older versions of Ruby you must have the official GCC compiler installed on your system.TO FIX THE PROBLEM: Install the official GCC compiler using these packages: https://github.com/kennethreitz/osx-gcc-installer/downloads
You will need to install the official GCC compiler to build older versions of Ruby even if you have installed Apple's Command Line Tools for Xcode package. The Command Line Tools for Xcode package only includes
llvm-gcc
.
我已经得到的Xcode 4.3.2安装。我可以安全地在顶部安装osx-gcc-installer - 这既能解决上述问题,又能让Xcode在iOS开发中顺利运行?
在此先感谢。
哇,非常感谢您的信息的答案! –