Subject:
Re: [ruby-ffi] ffi not compiling on mac os x??
From:
Luis Lavena
Date:
9/21/10 4:32 PM
To:
ruby-ffi@googlegroups.com

On Tue, Sep 21, 2010 at 3:45 PM, Linux_cat
<sarndeepnijjar@googlemail.com> wrote:
> error output:
>
> Building native extensions.  This could take a while...
> ERROR:  Error installing ffi:
>        ERROR: Failed to build gem native extension.
>
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
> extconf.rb
> checking for ffi_call() in -lffi... no
> checking for ffi_raw_call()... no
> checking for rb_thread_blocking_region()... no
> creating extconf.h
> creating Makefile
>
> make
> Configuring libffi for rch
> configure: WARNING: If you wanted to set the --build type, don't use --
> host.
>    If a cross compiler is detected then cross compile mode will be
> used.
> Invalid configuration `rch-apple-darwin': machine `rch-apple' not
> recognized
>
> any ideas?

For some reason the arch-darwin seems truncated.

Also, seems you don't have libffi installed. Can you install libffi
using ports or homebrew and try again?

-- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exupéry