#178 Cairo-tee.h no such file or directory

open
nobody
None
5
2012-12-11
2012-06-01
Anonymous
No

I'm trying to install the gtk2 gem under Ubuntu 10.04 64bit using rvm and ruby 1.9.3-p194 and I get the following error:

Fetching: pkg-config-1.1.3.gem (100%)
Fetching: glib2-1.1.3.gem (100%)
Building native extensions. This could take a while...
Fetching: atk-1.1.3.gem (100%)
Building native extensions. This could take a while...
Fetching: cairo-1.12.1.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing gtk2:
ERROR: Failed to build gem native extension.

/home/map7/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for GCC... yes
checking for Win32 OS... no
checking for Mac OS X... no
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
compiling rb_cairo_font_face.c
compiling rb_cairo_surface.c
rb_cairo_surface.c:54:25: error: cairo-tee.h: No such file or directory
rb_cairo_surface.c: In function ‘cr_xml_surface_initialize’:
rb_cairo_surface.c:1479: warning: implicit declaration of function ‘rb_cairo_device_from_ruby_object’
rb_cairo_surface.c:1479: warning: assignment makes pointer from integer without a cast
make: *** [rb_cairo_surface.o] Error 1

Gem files will remain installed in /home/map7/.rvm/gems/ruby-1.9.3-p194/gems/cairo-1.12.1 for inspection.
Results logged to /home/map7/.rvm/gems/ruby-1.9.3-p194/gems/cairo-1.12.1/ext/cairo/gem_make.out

Discussion

  • Kouhei Sutou
    Kouhei Sutou
    2012-06-03

    I released rcairo 1.12.2 now.
    It may fix the problem. Could you try it again?