Hi.
I upgraded from intrepid to karmic via jaunty. I updated my git
repository of ruby-gnome2 via git-svn. Ruby/GLib failed to build. Am I
the only one ?
$cd …/glib
$ruby extconf
Failed to open ‘/usr/lib/pkgconfig/gst-python-0.10.pc’: No such file or
directory
Package libdrm was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdrm.pc’
to the PKG_CONFIG_PATH environment variable
Package ‘libdrm’, required by ‘dri’, not found
checking for GCC… 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… yes
checking for gobject-2.0… yes
checking for gthread-2.0… yes
checking for G_PLATFORM_WIN32… no
checking for unistd.h… yes
checking for io.h… no
checking for g_spawn_close_pid() in glib.h… yes
checking for g_thread_init() in glib.h… yes
checking for g_main_depth() in glib.h… yes
checking for g_listenv() in glib.h… yes
checking for rb_check_array_type() in ruby.h… yes
checking for rb_exec_recursive() in ruby.h… yes
checking for rb_errinfo() in ruby.h… no
checking for rb_sourcefile() in ruby.h… no
checking for rb_sourceline() in ruby.h… no
checking for ruby_set_current_source() in ruby.h… yes
checking for rb_thread_blocking_region() in ruby.h… no
checking for ruby_native_thread_p() in ruby.h… no
checking for rb_str_encode() in ruby.h… no
checking for curr_thread in ruby.h,node.h… no
checking for rb_curr_thread in ruby.h,node.h… yes
creating ruby-glib2.pc
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=/usr/bin/ruby1.8
–with-pkg-config
–without-pkg-config
/home/instable/Desktop/git/ruby-gnome2/ruby-gnome2/trunk/glib/src/lib/pkg-config.rb:89:in
description': undefined method
[]’ for nil:NilClass (NoMethodError)
from
/home/instable/Desktop/git/ruby-gnome2/ruby-gnome2/trunk/glib/src/lib/mkmf-gnome2.rb:153:in
create_pkg_config_file' from /home/instable/Desktop/git/ruby-gnome2/ruby-gnome2/trunk/glib/src/lib/mkmf-gnome2.rb:146:in
open’
from
/home/instable/Desktop/git/ruby-gnome2/ruby-gnome2/trunk/glib/src/lib/mkmf-gnome2.rb:146:in
`create_pkg_config_file’
from extconf.rb:44
I take a look at the ruby errors. I have understant that:
PKGConfig.description(“gobject-2.0”) failed.
I have a /usr/lib/pkgconfig/gobject-2.0.pc file but pkg-config
–list-all does not display informations about GObject.
$pkg-config --libs gobject-2.0
-lgobject-2.0 -lglib-2.0
$cat /usr/lib/pkgconfig/gobject-2.0.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: GObject
Description: GLib Type, Object, Parameter and Signal Library
Requires: glib-2.0
Version: 2.22.3
Libs: -L${libdir} -lgobject-2.0
Cflags: