Ocorreu um erro durante a instalação do ffi (1.1.2) e o Bundler não pode continuar

Executando o OSX Mountain Lion, em um projeto do Rails 3.0.

Ao tentar atualizar minhas gemas com o bundler em um projeto Rails, recebo o seguinte erro:

An error occured while installing ffi (1.1.2), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.1.2'` succeeds before bundling.

ERROR:  Error installing ffi:
    ERROR: Failed to build gem native extension.

        /Users/victorstan/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

...

You have to install development tools first.

Eu tenho o XCode instalado, bem como ferramentas de linha de comando.

questionAnswers(2)

yourAnswerToTheQuestion