thibaudgg/rb-fsevent — Issue #31: Can't install with Command Line Tools for XCode 4.3
Author: enderson
Created: 2012-03-02 01:45:55+00:00
State: open

I removed the bloated XCode (sudo /Developer/Library/uninstall-devtools –mode=all) in favor of Apple's "Command Line Tools for XCode 4.3" package.

But I get this errors when trying to install rb-fsevent.

```bash
$ gem install rb-fsevent -v '0.4.3.1'
Building native extensions. This could take a while...
ERROR: Error installing rb-fsevent:
ERROR: Failed to build gem native extension.

/usr/local/Cellar/ruby/1.9.3-p0/bin/ruby extconf.rb
creating Makefile
CFLAGS='-isysroot //SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.7 -mdynamic-no-pic -std=gnu99 -Os -pipe -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wuninitialized -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wsign-compare -Wnewline-eof -Wconversion -Wshorten-64-to-32 -Wglobal-constructors -pedantic' /usr/bin/clang -isysroot //SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.7 -mdynamic-no-pic -std=gnu99 -dead_strip -framework CoreServices -o '/usr/local/lib/ruby/gems/1.9.1/gems/rb-fsevent-0.4.3.1/bin/fsevent_watch' fsevent/fsevent_watch.c
fsevent/fsevent_watch.c:1:10: fatal error: 'stdio.h' file not found
#include
^
1 error generated.
extconf.rb:59:in `

': Compilation of fsevent_watch failed (see README) (RuntimeError)

Gem files will remain installed in /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/rb-fsevent-0.4.3.1 for inspection.
Results logged to /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/rb-fsevent-0.4.3.1/ext/gem_make.out

```

I used the xcode-select to witch the XCode path, and change it to /, since I could not find any /Developer/ ou /Developer/MacOSX10.7.sdk folder.