Subject:
[ruby-ffi] Error trying to install ffi
From:
Michael Cohen
Date:
11/10/11 12:43 PM
To:
ruby-ffi@googlegroups.com

Hi,

I'm trying to install the ffi gem but when I run the gem install command I get the following error message:

Building native extensions.  This could take a while...
ERROR:  Error installing ffi:
ERROR: Failed to build gem native extension.

        /Users/frozencanuck/.rvm/rubies/ruby-1.9.2-p290/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.

Any idea what is going on? I've tried to explicitly download v1.0.10 but I get the same error message. 

I'm using Ruby v1.9.2-p290 running on Mac OS X 10.7.2. I also have xcode 4.2 installed. Any meaningful thoughts on this would be appreciated.

-Mike