Gtk+-2.0 problem

Discussion in 'Ruby' started by rick_2047, Mar 11, 2009.

  1. rick_2047

    rick_2047 Guest

    I am on arch linux and installed gtk-ruby from the pacman

    But when i require the lib from my script it gives me this error
    [rick@Sophiya ~]$ irb
    irb(main):001:0> require 'gtk2'
    irb: symbol lookup error: /usr/lib/ruby/site_ruby/1.8/i686-linux/
    pango.so: undefined symbol: pango_glyph_item_get_type


    Can anyone tell me what the hell is wrong?????
    rick_2047, Mar 11, 2009
    #1
    1. Advertising

  2. * rick_2047 <> [2009-03-11 15:56:46 +0900]:

    > I am on arch linux and installed gtk-ruby from the pacman
    >
    > But when i require the lib from my script it gives me this error
    > [rick@Sophiya ~]$ irb
    > irb(main):001:0> require 'gtk2'
    > irb: symbol lookup error: /usr/lib/ruby/site_ruby/1.8/i686-linux/
    > pango.so: undefined symbol: pango_glyph_item_get_type
    >
    >
    > Can anyone tell me what the hell is wrong?????


    Yes.. you need to ruby-gtk2!

    [saji@apcc08 20c3m]$ sudo pacman -S ruby-gtk2
    resolving dependencies...
    looking for inter-conflicts...

    Targets (6): ruby-glib2-0.18.1-1 ruby-atk-0.18.1-1 ruby-pango-0.18.1-1
    ruby-gdkpixbuf2-0.18.1-1 ruby-rcairo-1.8.0-1 ruby-gtk2-0.18.1-1

    Total Download Size: 0.64 MB
    Total Installed Size: 2.20 MB

    tatus Legend:
    (OK):download completed.
    checking package integrity...
    (6/6) checking for file conflicts [#####################] 100%
    (1/6) installing ruby-glib2 [#####################] 100%
    (2/6) installing ruby-atk [#####################] 100%
    (3/6) installing ruby-pango [#####################] 100%
    (4/6) installing ruby-gdkpixbuf2 [#####################] 100%
    (5/6) installing ruby-rcairo [#####################] 100%
    (6/6) installing ruby-gtk2 [#####################] 100%
    [saji@apcc08 20c3m]$ irb
    irb(main):001:0> require 'gtk2'
    => true
    irb(main):002:0>

    saji

    --
    Saji N. Hameed

    APEC Climate Center +82 51 668 7470
    National Pension Corporation Busan Building 12F
    Yeonsan 2-dong, Yeonje-gu, BUSAN 611705
    KOREA
    Saji N. Hameed, Mar 11, 2009
    #2
    1. Advertising

  3. rick_2047

    rick_2047 Guest

    i did just that sorry if i was not able to describe myself properly.
    Whatever you show in your reply is more or less what i did, but still
    i tried to reinstall it
    [rick@Sophiya ~]$ su
    Password:
    [root@Sophiya rick]# pacman -Ql ruby-gtk2
    ruby-gtk2 /usr/lib/ruby/site_ruby/1.8/gtk2.rb
    ruby-gtk2 /usr/lib/ruby/site_ruby/1.8/gtk2/base.rb
    ruby-gtk2 /usr/lib/ruby/site_ruby/1.8/i686-linux/gtk2.so
    ruby-gtk2 /usr/lib/ruby/site_ruby/1.8/i686-linux/rbgtk.h
    ruby-gtk2 /usr/lib/ruby/site_ruby/1.8/i686-linux/rbgtkconversions.h
    [root@Sophiya rick]# get ruby-gtk2
    :: ruby-gtk2-0.18.1-1: local version is up to date. Upgrade anyway? [Y/
    n]
    resolving dependencies... done.
    looking for inter-conflicts... done.

    Targets: ruby-gtk2-0.18.1-1

    Total Package Size: 0.36 MB
    Total Installed Size: 1.15 MB

    Proceed with installation? [Y/n] [rick@Sophiya ~]$ su
    Password:
    [root@Sophiya rick]# pacman -Ql ruby-gtk2
    ruby-gtk2 /usr/lib/ruby/site_ruby/1.8/gtk2.rb
    ruby-gtk2 /usr/lib/ruby/site_ruby/1.8/gtk2/base.rb
    ruby-gtk2 /usr/lib/ruby/site_ruby/1.8/i686-linux/gtk2.so
    ruby-gtk2 /usr/lib/ruby/site_ruby/1.8/i686-linux/rbgtk.h
    ruby-gtk2 /usr/lib/ruby/site_ruby/1.8/i686-linux/rbgtkconversions.h
    [root@Sophiya rick]# get ruby-gtk2
    :: ruby-gtk2-0.18.1-1: local version is up to date. Upgrade anyway? [Y/
    n]
    resolving dependencies... done.
    looking for inter-conflicts... done.

    Targets: ruby-gtk2-0.18.1-1

    Total Package Size: 0.36 MB
    Total Installed Size: 1.15 MB

    Proceed with installation? [Y/n]
    checking package integrity... done.
    error: missing package filelist in /mnt/e:/pkg/ruby-
    gtk2-0.18.1-1.pkg.tar.gz, generating one
    cleaning up... done.
    (1/1) checking for file conflicts
    [#####################] 100%
    (1/1) upgrading ruby-gtk2
    [#####################] 100%
    [root@Sophiya rick]# irb
    irb(main):001:0> require 'gtk2'
    irb: symbol lookup error: /usr/lib/ruby/site_ruby/1.8/i686-linux/
    pango.so: undefined symbol: pango_glyph_item_get_type

    See still the same problem


    On Mar 11, 1:46=A0am, "Saji N. Hameed" <> wrote:
    > * rick_2047 <> [2009-03-11 15:56:46 +0900]:
    >
    > > I am on arch linux and installed gtk-ruby from the pacman

    >
    > > But when i require the lib from my script it gives me this error
    > > [rick@Sophiya ~]$ irb
    > > irb(main):001:0> require 'gtk2'
    > > irb: symbol lookup error: /usr/lib/ruby/site_ruby/1.8/i686-linux/
    > > pango.so: undefined symbol: pango_glyph_item_get_type

    >
    > > Can anyone tell me what the hell is wrong?????

    >
    > Yes.. you need to ruby-gtk2!
    >
    > [saji@apcc08 20c3m]$ sudo pacman -S ruby-gtk2
    > resolving dependencies...
    > looking for inter-conflicts...
    >
    > Targets (6): ruby-glib2-0.18.1-1 =A0ruby-atk-0.18.1-1 =A0ruby-pango-0.18.=

    1-1 =A0
    > =A0 =A0 =A0 =A0 =A0 =A0 =A0ruby-gdkpixbuf2-0.18.1-1 =A0ruby-rcairo-1.8.0-=

    1 =A0ruby-gtk2-0.18.1-1 =A0
    >
    > Total Download Size: =A0 =A00.64 MB
    > Total Installed Size: =A0 2.20 MB
    >
    > tatus Legend:
    > =A0(OK):download completed.
    > checking package integrity...
    > (6/6) checking for file conflicts =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [##=

    ###################] 100%
    > (1/6) installing ruby-glib2 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =

    =A0 [#####################] 100%
    > (2/6) installing ruby-atk =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=

    =A0 [#####################] 100%
    > (3/6) installing ruby-pango =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =

    =A0 [#####################] 100%
    > (4/6) installing ruby-gdkpixbuf2 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0[=

    #####################] 100%
    > (5/6) installing ruby-rcairo =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =

    =A0[#####################] 100%
    > (6/6) installing ruby-gtk2 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =

    =A0 =A0[#####################] 100%
    > [saji@apcc08 20c3m]$ irb
    > irb(main):001:0> require 'gtk2'
    > =3D> true
    > irb(main):002:0>
    >
    > saji
    >
    > --
    > Saji N. Hameed
    >
    > APEC Climate Center =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =

    =A0 =A0 =A0 =A0 =A0 +82 51 668 7470
    > National Pension Corporation Busan Building 12F =A0 =A0 =A0 =A0
    > Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 s=


    > KOREA
    rick_2047, Mar 11, 2009
    #3
  4. rick_2047 wrote:
    > I am on arch linux and installed gtk-ruby from the pacman
    > ...


    It looks that there is a release conflict on Arch Linux. Though I am not
    sure that this will help you, try running the following two commands:

    ruby1.8 -e 'require "gtk2"'
    ruby1.9 -e 'require "gtk2"'

    Using ruby1.8, ruby1.9, irb1.8 or irb1.9 rather than just ruby or irb
    forces the selected ruby version you wish to run. If this solves your
    problem we can fix your ruby and irb to use the correct version.

    I also suggest you post your problem on "Ruby-Gnome 2" forum
    (http://www.ruby-forum.com/forum/12), where Gtk problems are discussed.

    Good luck,
    Torli
    --
    Posted via http://www.ruby-forum.com/.
    Torli Birnbauer, Mar 11, 2009
    #4
  5. rick_2047 wrote:

    > i did just that sorry if i was not able to describe myself properly.
    > Whatever you show in your reply is more or less what i did, but still
    > i tried to reinstall it
    > [rick@Sophiya ~]$ su
    > Password:

    ....
    > [root@Sophiya rick]# get ruby-gtk2


    What does your 'get' script/alias look like? Are you sure your package
    caches are up to date? Try

    $ pacman -Syy pango ruby-pango ruby-gtk

    also check

    $ strings /usr/lib/ruby/site_ruby/1.8/i686-linux/pango.so | grep
    pango_glyph_item_get_type

    and

    $ strings /usr/lib/libpango-1.0.so | grep pango_glyph_item_get_type

    they should both return 'pango_glyph_item_get_type'

    on my system i have
    ruby-gtk2 0.18.1-1
    ruby-pango 0.18.1-1
    pango 1.22.4-1

    If all else fails, try a different mirror, try to rebuild pango,
    ruby-pango. ruby-gtk2 using current PKGBUILDS, file a bug report...
    Henning Bekel, Mar 12, 2009
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shuo Xiang

    [OT]GTK widget animation problem

    Shuo Xiang, Jul 19, 2003, in forum: C Programming
    Replies:
    1
    Views:
    490
    Kevin Easton
    Jul 20, 2003
  2. Wil Koenen

    problem with GTK on Windows

    Wil Koenen, Jul 6, 2003, in forum: Python
    Replies:
    0
    Views:
    405
    Wil Koenen
    Jul 6, 2003
  3. Replies:
    2
    Views:
    516
  4. Gergely Kontra
    Replies:
    2
    Views:
    248
    Joao Pedrosa
    Jun 18, 2004
  5. Alex Shulgin
    Replies:
    1
    Views:
    176
    thefed
    Nov 21, 2007
Loading...

Share This Page