Hi,

In <CAESf5icq=auwH+8HEAKpHtmDRWfgyBzuprcT2wMVVSUXXhkTEw / mail.gmail.com>
  "Fatal Error with Ruby/GTK2, Homebrew, Green Shoes, and OSX Snow Leopard" on Sat, 9 Jul 2011 11:15:08 +0900,
  Timothy Barnes <barnes7td / gmail.com> wrote:

> Building native extensions.  This could take a while...
> ERROR:  Error installing cairo:
>  ERROR: Failed to build gem native extension.
> 
>         /Users/Timothy/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
> checking for GCC... yes
> checking for Win32 OS... no
> checking for Mac OS X... yes
> checking for cairo version (>= 1.2.0)... yes
> checking for HAVE_RUBY_ST_H in ruby.h... yes
> checking for HAVE_RUBY_IO_H in ruby.h... yes
> checking for rb_errinfo() in ruby.h... yes
> checking for enum ruby_value_type in ruby.h... yes
> creating Makefile
> 
> make
> gcc -I.
> -I/Users/Timothy/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-darwin10.6.0
> -I/Users/Timothy/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward
> -I/Users/Timothy/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.
> -DRB_CAIRO_COMPILATION -DHAVE_RB_ERRINFO -DHAVE_TYPE_ENUM_RUBY_VALUE_TYPE
> -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -O3 -ggdb -Wextra
> -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
> -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
>  -fno-common -pipe -Wall -I/opt/local/include/cairo
> -I/opt/local/include/freetype2 -I/opt/local/include
> -I/opt/local/include/libpng12 -I/usr/X11/include -DXTHREADS  -o rb_cairo.o
> -c rb_cairo.c
> In file included from rb_cairo.c:17:
> rb_cairo.h:20:19: error: cairo.h: No such file or directory

It means rcairo can't find cairo.h. Could you check
/opt/local/include/cairo has cairo.h?


Thanks,
--
kou