From: Timothy Barnes Date: 2011-07-09T13:07:34+09:00 Subject: Re: Fatal Error with Ruby/GTK2, Homebrew, Green Shoes, and OSX Snow Leopard --000e0cd22862e262fe04a79b16e0 Content-Type: text/plain; charset=ISO-8859-1 I can't find that directory at all. is it ~/opt/local/......? much less the file On Fri, Jul 8, 2011 at 10:59 PM, Kouhei Sutou wrote: > Hi, > > In > "Fatal Error with Ruby/GTK2, Homebrew, Green Shoes, and OSX Snow Leopard" > on Sat, 9 Jul 2011 11:15:08 +0900, > Timothy Barnes 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 > > --000e0cd22862e262fe04a79b16e0--