title: Unable to install Jekyll gem since upgrading to Xcode 4.1
body: <p>I have previously successfully installed the Jekyll gem on a Mac with the gcc compiler that shipped with Xcode 3. Unfortunately I can't install it on a different Mac that now has Xcode 4.1. This Mac used to have Xcode 3, but I uninstalled it using the command <code>sudo /Developer-3.2.5/Library/uninstall-devtools --mode=all</code>.</p>
  
  <p>When trying to <code>sudo gem install jekyll</code> I get the compilation error shown below:</p>
  
  <pre>
  Building native extensions.  This could take a while...
  ERROR:  Error installing jekyll:
      ERROR: Failed to build gem native extension.
  
  /usr/local/bin/ruby extconf.rb
  creating Makefile
  
  make
  gcc -I. -I/usr/local/lib/ruby/1.8/i686-darwin10.3.2 -I/usr/local/lib/ruby/1.8/i686-darwin10.3.2 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -D_XOPEN_SOURCE=1  -fno-common -pipe -fno-common   -c porter.c
  porter.c:31:44: error: stdlib.h: No such file or directory
  porter.c:32:47: error: string.h: No such file or directory
  porter.c: In function ‘create_stemmer’:
  porter.c:85: warning: incompatible implicit declaration of built-in function ‘malloc’
  porter.c: In function ‘setto’:
  porter.c:199: warning: incompatible implicit declaration of built-in function ‘memmove’
  make: *** [porter.o] Error 1
  
  
  Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/fast-stemmer-1.0.0 for inspection.
  Results logged to /usr/local/lib/ruby/gems/1.8/gems/fast-stemmer-1.0.0/ext/gem_make.out</pre>
  
  <p>There seems to be a fairly fundamental problem here! How can I fix this? I'm using Ruby 1.8.7 and RubyGems <strike>1.3.7</strike> 1.8.10.</p>
  
  <p>Thanks in advance.</p>