免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3567 | 回复: 1
打印 上一主题 下一主题

安装ruby gtk时,cairo装不上 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-09-13 11:45 |只看该作者 |倒序浏览
安装ruby gtk时,cairo装不上
错误信息如下:
  1. $ jruby -v               
  2. jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-27 f636731) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [darwin-x86_64-java]
  3. krainboltgreene on Kurtis-Rainbolt-Greenes-Mac-mini.local in ~/repo/ruby
  4. $ gem install cairo gtk2
  5. Building native extensions.  This could take a while...
  6. ERROR:  Error installing cairo:
  7.     ERROR: Failed to build gem native extension.

  8.         /Users/krainboltgreene/.rvm/rubies/jruby-head/bin/jruby extconf.rb
  9. WARNING: JRuby does not support native extensions or the `mkmf' library very well.
  10. Check http://kenai.com/projects/jruby/pages/Home for alternatives.
  11. checking for GCC... yes
  12. checking for Win32 OS... no
  13. checking for Mac OS X... yes
  14. checking for cairo version (>= 1.2.0)... yes
  15. checking for HAVE_RUBY_ST_H in ruby.h... no
  16. checking for ruby/st.h... yes
  17. checking for HAVE_RUBY_IO_H in ruby.h... no
  18. checking for ruby/io.h... no
  19. checking for rb_errinfo() in ruby.h... no
  20. checking for enum ruby_value_type in ruby.h... no
  21. creating Makefile

  22. make
  23. cc -I. -I. -I/Users/krainboltgreene/.rvm/rubies/jruby-head/lib/native/include/ruby -I. -DRB_CAIRO_COMPILATION -DHAVE_RUBY_ST_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions   -Wall -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/X11/include/libpng12  -arch x86_64 -c rb_cairo.c
  24. cc -I. -I. -I/Users/krainboltgreene/.rvm/rubies/jruby-head/lib/native/include/ruby -I. -DRB_CAIRO_COMPILATION -DHAVE_RUBY_ST_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions   -Wall -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/X11/include/libpng12  -arch x86_64 -c rb_cairo_constants.c
  25. cc -I. -I. -I/Users/krainboltgreene/.rvm/rubies/jruby-head/lib/native/include/ruby -I. -DRB_CAIRO_COMPILATION -DHAVE_RUBY_ST_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions   -Wall -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/X11/include/libpng12  -arch x86_64 -c rb_cairo_context.c
  26. rb_cairo_context.c: In function ‘Init_cairo_context’:
  27. rb_cairo_context.c:1558: warning: implicit declaration of function ‘rb_set_end_proc’
  28. cc -I. -I. -I/Users/krainboltgreene/.rvm/rubies/jruby-head/lib/native/include/ruby -I. -DRB_CAIRO_COMPILATION -DHAVE_RUBY_ST_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions   -Wall -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/X11/include/libpng12  -arch x86_64 -c rb_cairo_device.c
  29. cc -I. -I. -I/Users/krainboltgreene/.rvm/rubies/jruby-head/lib/native/include/ruby -I. -DRB_CAIRO_COMPILATION -DHAVE_RUBY_ST_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions   -Wall -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/X11/include/libpng12  -arch x86_64 -c rb_cairo_exception.c
  30. cc -I. -I. -I/Users/krainboltgreene/.rvm/rubies/jruby-head/lib/native/include/ruby -I. -DRB_CAIRO_COMPILATION -DHAVE_RUBY_ST_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions   -Wall -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/X11/include/libpng12  -arch x86_64 -c rb_cairo_font_extents.c
  31. cc -I. -I. -I/Users/krainboltgreene/.rvm/rubies/jruby-head/lib/native/include/ruby -I. -DRB_CAIRO_COMPILATION -DHAVE_RUBY_ST_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions   -Wall -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/X11/include/libpng12  -arch x86_64 -c rb_cairo_font_face.c
  32. rb_cairo_font_face.c: In function ‘cr_user_font_face_init_func’:
  33. rb_cairo_font_face.c:255: warning: implicit declaration of function ‘rb_obj_respond_to’
  34. rb_cairo_font_face.c: In function ‘Init_cairo_font’:
  35. rb_cairo_font_face.c:689: warning: implicit declaration of function ‘rb_attr’
  36. cc -I. -I. -I/Users/krainboltgreene/.rvm/rubies/jruby-head/lib/native/include/ruby -I. -DRB_CAIRO_COMPILATION -DHAVE_RUBY_ST_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions   -Wall -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/X11/include/libpng12  -arch x86_64 -c rb_cairo_font_options.c
  37. cc -I. -I. -I/Users/krainboltgreene/.rvm/rubies/jruby-head/lib/native/include/ruby -I. -DRB_CAIRO_COMPILATION -DHAVE_RUBY_ST_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions   -Wall -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/X11/include/libpng12  -arch x86_64 -c rb_cairo_glyph.c
  38. cc -I. -I. -I/Users/krainboltgreene/.rvm/rubies/jruby-head/lib/native/include/ruby -I. -DRB_CAIRO_COMPILATION -DHAVE_RUBY_ST_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions   -Wall -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/X11/include/libpng12  -arch x86_64 -c rb_cairo_io.c
  39. rb_cairo_io.c: In function ‘rb_cairo__io_func_rescue’:
  40. rb_cairo_io.c:49: error: called object ‘rb_gv_get((const char *)(char *)"$!")’ is not a function
  41. make: *** [rb_cairo_io.o] Error 1
复制代码
不知是为何

论坛徽章:
0
2 [报告]
发表于 2012-09-13 12:01 |只看该作者
可能是jruby的问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP