[ruby-list:49767] CentOS に pango 2.0.2 以降がインストールできない

From: "5.5" <5.5@...>
Date: 2014-03-01 14:01:49 UTC
List: ruby-list #49767
5.5 です。お尋ねばかりですみません。

CentOS に pango 2.0.2 以降がインストールできずに困っています。

あるマシンでは,pango の
1.2.6, 2.0.0, 2.0.1
がインストールできましたが,
2.0.2, 2.0.3, 2.1.0
はインストールできませんでした。
できなかったときのエラーメッセージをこのメールの末尾に載せま
す。

Ruby のバージョンは

ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]

などで試しました。

OS は CentOS 5.1 です。
yum list installed | rak pango
の結果は

pango.i386         1.14.9-8.el5.centos.3   installed
pango.x86_64       1.14.9-8.el5.centos.3   installed
pango-devel.i386   1.14.9-8.el5.centos.3   installed
pango-devel.x86_64 1.14.9-8.el5.centos.3   installed

でした。

pango 2.0.1 はインストールはできるのですが,実際には動き
ません。
irb -r pango
としただけで segmentation fault が出て落ちるのです。
※正確には,Ruby 2.0.0, 2.1.0, 2.1.1 の場合に落ち,1.9.3
 の場合は落ちませんでした。


一方,別のマシンでは問題なくインストールできました。
こちらは CentOS 6.5 で,
yum list installed | rak pango
の結果は

pango.x86_64        1.28.1-7.el6_3   @updates/6.3
pango-devel.x86_64  1.28.1-7.el6_3   @base

でした。


yum で入れた pango のバージョンが違うので,これが成否の
分かれ目でしょうか?
CentOS 5.1 のほうは,yum check-update としても pango は
出てこず,1.14.9 より上にはできませんでした。


★gem install pango の結果

ERROR:  Error installing pango:
        ERROR: Failed to build gem native extension.

    /usr/local/rbenv/versions/2.1.1/bin/ruby extconf.rb
checking for -Wall option to compiler... yes
checking for -Waggregate-return option to compiler... yes
checking for -Wcast-align option to compiler... yes
checking for -Wextra option to compiler... yes
checking for -Wformat=2 option to compiler... yes
checking for -Winit-self option to compiler... yes
checking for -Wlarger-than-65500 option to compiler... yes
checking for -Wmissing-declarations option to compiler... yes
checking for -Wmissing-format-attribute option to compiler... yes
checking for -Wmissing-include-dirs option to compiler... yes
checking for -Wmissing-noreturn option to compiler... yes
checking for -Wmissing-prototypes option to compiler... yes
checking for -Wnested-externs option to compiler... yes
checking for -Wold-style-definition option to compiler... yes
checking for -Wpacked option to compiler... yes
checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... yes
checking for -Wpointer-arith option to compiler... yes
checking for -Wswitch-default option to compiler... yes
checking for -Wswitch-enum option to compiler... yes
checking for -Wundef option to compiler... yes
checking for -Wunsafe-loop-optimizations option to compiler... yes
checking for -Wwrite-strings option to compiler... yes
checking for rb_define_alloc_func() in ruby.h... yes
checking for rb_block_proc() in ruby.h... yes
checking for new allocation framework... yes
checking for attribute assignment... no
checking for rb_errinfo() in ruby.h... yes
checking for cairo... yes
checking for rb_cairo.h... yes
checking for Win32 OS... no
checking for pango version (>= 1.14.0)... yes
checking for pangocairo... yes
checking for pangowin32... no
checking for pangoft2... yes
checking for pango_layout_iter_get_type() in pango/pango.h... yes
checking for pango_render_part_get_type() in pango/pango.h... yes
checking for pango_attr_strikethrough_color_new() in pango/pango.h... yes
checking for pango_attr_underline_color_new() in pango/pango.h... yes
checking for pango_glyph_item_free() in pango/pango.h... yes
checking for pango_glyph_item_get_type() in pango/pango.h... no
checking for pango_attr_iterator_get_attrs() in pango/pango.h... yes
checking for pango_itemize_with_base_dir() in pango/pango.h... yes
checking for pango_font_family_is_monospace() in pango/pango.h... yes
creating rbpangoversion.h
creating ruby-pango.pc
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling rbpangofontface.c
compiling rbpangoitem.c
compiling rbpangoglyphitem.c
compiling rbpangorectangle.c
compiling rbpangoscriptiter.c
compiling rbpangoscript.c
compiling rbpangoanalysis.c
rbpangoanalysis.c: In function ‘rg_initialize’:
rbpangoanalysis.c:54: 警告: 構造体初期化子内の要素が多すぎます
rbpangoanalysis.c:54: 警告: (near initialization for ‘analysis’)
rbpangoanalysis.c:54: 警告: 構造体初期化子内の要素が多すぎます
rbpangoanalysis.c:54: 警告: (near initialization for ‘analysis’)
rbpangoanalysis.c:54: 警告: 構造体初期化子内の要素が多すぎます
rbpangoanalysis.c:54: 警告: (near initialization for ‘analysis’)
compiling rbpango.c
compiling rbpangocairocontext.c
compiling rbpangolayout.c
compiling rbpangofontmap.c
compiling rbpangocairo.c
rbpangocairo.c: In function ‘rg_s_create’:
rbpangocairo.c:37: error: ‘CAIRO_FONT_TYPE_USER’ undeclared (first use
in this function)
rbpangocairo.c:37: error: (Each undeclared identifier is reported only once
rbpangocairo.c:37: error: for each function it appears in.)
rbpangocairo.c:44: error: ‘CAIRO_FONT_TYPE_QUARTZ’ undeclared (first use
in this function)
rbpangocairo.c:51: 警告: implicit declaration of function
‘pango_cairo_font_map_new_for_font_type’
rbpangocairo.c:51: 警告: nested extern declaration of
‘pango_cairo_font_map_new_for_font_type’
rbpangocairo.c:51: 警告: assignment makes pointer from integer without a
cast
make: *** [rbpangocairo.o] エラー 1

make failed, exit code 2

Gem files will remain installed in
/usr/local/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/pango-2.1.0 for
inspection.
Results logged to
/usr/local/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/pango-2.1.0/gem_make.out


-- 
5.5@moji.gr.jp

In This Thread

Prev Next