sstephenson/ruby-build — Issue #97: ruby-build doesn't seem to find gcc even though it it installed
Author: suitmymind
Created: 2011-12-04 09:56:24+00:00
State: open

I'm using ruby-build 20111030 and Mac OS X (10.7.2)

```
$ ruby-build -v
ruby-build 20111030
```

When I try to build ruby 1.8.7-p249, ruby-build tells me it couldn't find a suitable gcc binary on my system

```
$ ruby-build 1.8.7-p249 ~/.rbenv/versions/1.8.7-p249

ERROR: This package must be compiled with GCC, and we
couldn't find a suitable `gcc' binary on your system.
Please install GCC and try again.

As of version 4.2, Xcode is LLVM-only and no longer
includes GCC. You can install GCC with these binary
packages on Mac OS X:

https://github.com/kennethreitz/osx-gcc-installer/downloads

BUILD FAILED
```

But it looks like gcc is correctly installed on my system :

```
$ which gcc
/usr/bin/gcc

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.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.
```

Any idea?