0

I'm installing RVM & Ruby without Xcode's Command Line Tools (on Mac OS X 10.8.2 (12C60) (Mountain Lion) with Xcode 4.5 (4G182)).

RVM installs fine. But, when I try to install Ruby, I get error: limits.h: No such file or directory https://gist.github.com/3789921#L241.

But, that file exists there because cat works and so does:

$ file /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h
/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include/limits.h: ASCII c program text

So, why does bash say it doesn't exist?

The following questions are similar but unhelpful:

4

1 に答える 1

2

動作させるには、osx-gcc-installer (または command-line-tools + gcc-4.2) をインストールする必要があります。

rvm requirementsruby を適切にインストールするために何が必要かについては、こちらをお読みください。

于 2012-10-12T18:11:46.753 に答える