From: Markus J. <mj...@we...> - 2002-09-14 21:11:16
|
hello I just downloaded ruby-gnome from cvs and installed the gtk+ part I changed to the gtk directory and typed ruby extconf.rb make sudo make install and everything was fine but when I type ruby -Isrc sample/*.rb or run any of the examples programms or use irb and type require "gtk" I get this error: irb(main):001:0> require 'gtk2' LoadError: /usr/local/lib/ruby/1.6/i686-linux/gtk2.so: undefined symbol: id_relatives - /usr/local/lib/ruby/1.6/i686-linux/gtk2.so from (irb):1:in `require' from (irb):1 my system: Red Hat 7.3 ruby 1.6.7 (2002-03-01) [i686-linux] gtk2-devel-2.0.2-4 (rpm version) gtk2-2.0.2-4 (rpm version) the gtk2 rpms are those which come with the Red Hat 7.3 cd's any hints on what to do?? by the way: thanks for your work. I like gtk very much and together with Ruby this will be a powerful tool regards markus -- Markus Jais http://www.mjais.de in...@mj... The road goes ever on and on - Bilbo Baggins |
From: Masao M. <mu...@hi...> - 2002-09-15 04:04:37
|
Hi, Oops, I did not say a most important thing ... Did you install Ruby/GLib2? Ruby/GTK requires Ruby/GLib2. #Ruby/GLib2 is ruby-gnome2/gnome/glib/ in CVS. Cheers, On Sat, 14 Sep 2002 23:15:28 +0200 Markus Jais <mj...@we...> wrote: > hello > I just downloaded ruby-gnome from cvs and installed the gtk+ part > > I changed to the gtk directory and typed > ruby extconf.rb > make > sudo make install > > and everything was fine > > but when I type > ruby -Isrc sample/*.rb > or run any of the examples programms or use irb and type require "gtk" > I get this error: > > irb(main):001:0> require 'gtk2' > LoadError: /usr/local/lib/ruby/1.6/i686-linux/gtk2.so: undefined symbol: > id_relatives - /usr/local/lib/ruby/1.6/i686-linux/gtk2.so > from (irb):1:in `require' > from (irb):1 > > > my system: > Red Hat 7.3 > ruby 1.6.7 (2002-03-01) [i686-linux] > gtk2-devel-2.0.2-4 (rpm version) > gtk2-2.0.2-4 (rpm version) > > the gtk2 rpms are those which come with the Red Hat 7.3 cd's > > any hints on what to do?? > > by the way: thanks for your work. I like gtk very much > and together with Ruby this will be a powerful tool > > regards > markus > > > > > -- > Markus Jais > http://www.mjais.de > in...@mj... > The road goes ever on and on - Bilbo Baggins > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > -- .:% Masao Mutoh<mu...@hi...> |
From: Markus J. <mj...@we...> - 2002-09-15 08:20:09
|
Hello thanks, but there are still problems. now I can load it into irb but running the samples still leads to an error irb(main):001:0> require "glib2" true irb(main):002:0> require "gtk2" true irb(main):003:0> ruby -Isrc sample/*.rb sample/calendar.rb:1:in `require': src/gtk2.so: undefined symbol: id_relatives - src/gtk2.so (LoadError) from sample/calendar.rb:1 anything else that must be installed? markus On Sunday 15 September 2002 06:04, Masao Mutoh wrote: > Hi, > > Oops, I did not say a most important thing ... > > Did you install Ruby/GLib2? > Ruby/GTK requires Ruby/GLib2. > #Ruby/GLib2 is ruby-gnome2/gnome/glib/ in CVS. > > Cheers, > > On Sat, 14 Sep 2002 23:15:28 +0200 > > Markus Jais <mj...@we...> wrote: > > hello > > I just downloaded ruby-gnome from cvs and installed the gtk+ part > > > > I changed to the gtk directory and typed > > ruby extconf.rb > > make > > sudo make install > > > > and everything was fine > > > > but when I type > > ruby -Isrc sample/*.rb > > or run any of the examples programms or use irb and type require "gtk" > > I get this error: > > > > irb(main):001:0> require 'gtk2' > > LoadError: /usr/local/lib/ruby/1.6/i686-linux/gtk2.so: undefined symbol: > > id_relatives - /usr/local/lib/ruby/1.6/i686-linux/gtk2.so > > from (irb):1:in `require' > > from (irb):1 > > > > > > my system: > > Red Hat 7.3 > > ruby 1.6.7 (2002-03-01) [i686-linux] > > gtk2-devel-2.0.2-4 (rpm version) > > gtk2-2.0.2-4 (rpm version) > > > > the gtk2 rpms are those which come with the Red Hat 7.3 cd's > > > > any hints on what to do?? > > > > by the way: thanks for your work. I like gtk very much > > and together with Ruby this will be a powerful tool > > > > regards > > markus > > > > > > > > > > -- > > Markus Jais > > http://www.mjais.de > > in...@mj... > > The road goes ever on and on - Bilbo Baggins > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > ruby-gnome2-devel-en mailing list > > rub...@li... > > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en -- Markus Jais http://www.mjais.de in...@mj... The road goes ever on and on - Bilbo Baggins |
From: Masao M. <mu...@hi...> - 2002-09-15 10:51:35
|
Hi, On Sun, 15 Sep 2002 10:24:15 +0200 Markus Jais <mj...@we...> wrote: > Hello > > thanks, but there are still problems. > now I can load it into irb but running the samples still leads to an error cd ruby-gnome2/glib $ruby extconf.rb $make (su) #make install $cd ../gtk2 $ruby extconf.rb $make (su) #make install #cp lib/gtk.rb /usr/lib/ruby/1.7/. #-> You use ruby 1.7 #cp lib/gtk.rb /usr/lib/ruby/1.6/. #-> You use ruby 1.6 $cd sample $ ruby calendar.rb > ruby -Isrc sample/*.rb -Isrc can't use here. Documents have not update yet. Sorry. Cheers, -- .:% Masao Mutoh<mu...@hi...> |
From: Markus J. <mj...@we...> - 2002-09-15 11:27:19
|
thanks now it works. just on more question for my understanding. why is glib2 needed. I thought this has only some convenient types and memory routines for C programmers. why is this needed for ruby?? just curious! markus On Sunday 15 September 2002 12:51, Masao Mutoh wrote: > Hi, > > On Sun, 15 Sep 2002 10:24:15 +0200 > > Markus Jais <mj...@we...> wrote: > > Hello > > > > thanks, but there are still problems. > > now I can load it into irb but running the samples still leads to an > > error > > cd ruby-gnome2/glib > $ruby extconf.rb > $make > (su) > #make install > > $cd ../gtk2 > $ruby extconf.rb > $make > (su) > #make install > #cp lib/gtk.rb /usr/lib/ruby/1.7/. #-> You use ruby 1.7 > #cp lib/gtk.rb /usr/lib/ruby/1.6/. #-> You use ruby 1.6 > > $cd sample > $ ruby calendar.rb > > > ruby -Isrc sample/*.rb > > -Isrc can't use here. Documents have not update yet. Sorry. > > Cheers, -- Markus Jais http://www.mjais.de in...@mj... The road goes ever on and on - Bilbo Baggins |
From: Masao M. <mu...@hi...> - 2002-09-15 12:03:41
|
Hi, On Sun, 15 Sep 2002 13:31:32 +0200 Markus Jais <mj...@we...> wrote: > just on more question for my understanding. > why is glib2 needed. I thought this has only some convenient types > and memory routines for C programmers. > why is this needed for ruby?? > just curious! Hmm ... glib package(not ruby) includes glib, gmodule, gobject, gthread. I think we do not need to implement glib. Because almost of the functions will not use with Ruby. But we need gobject and some other functions in glib package. Especially GObject <-> Ruby conversion is very important part of Ruby-GNOME2. At first, I thought separated 'glib' and 'gobject', but it became to overdo, it was enough one library. So I decided this to use here as glib package name. And I think other utility functions which will be used whole of Ruby-GNOME2 define in Ruby/GLib. It makes easy to implement Ruby/GTK and other library which support GType system. But I read your comment, it may be better to separate 'glib', 'gobject', and utilty functions ... Any comments? -- .:% Masao Mutoh<mu...@hi...> |
From: Markus J. <mj...@we...> - 2002-09-15 12:11:50
|
Hello I am not an expert an gtk and glib but I think your choice was a good one. seperating it into many packages migth turn out to be confusing one suggestion when ruby-gnome2 is stable. release two packages - one complete package with all the gnome stuff - one package only with gtk2 and glib2 many users do not want to use gnome because it is not portable to windows so, when you make a package gtk2 and glib2 and the installation process can install both it is easy for the users and nobody has to worry about gobject and all the stuff so I think it is good the way you did it. markus On Sunday 15 September 2002 14:03, Masao Mutoh wrote: > Hi, > > On Sun, 15 Sep 2002 13:31:32 +0200 > > Markus Jais <mj...@we...> wrote: > > just on more question for my understanding. > > why is glib2 needed. I thought this has only some convenient types > > and memory routines for C programmers. > > why is this needed for ruby?? > > just curious! > > Hmm ... > > glib package(not ruby) includes glib, gmodule, gobject, gthread. > > I think we do not need to implement glib. > Because almost of the functions will not use with Ruby. > > But we need gobject and some other functions in glib package. > Especially GObject <-> Ruby conversion is very important part of > Ruby-GNOME2. > > At first, I thought separated 'glib' and 'gobject', > but it became to overdo, it was enough one library. > So I decided this to use here as glib package name. > > And I think other utility functions which will be used whole of > Ruby-GNOME2 define in Ruby/GLib. > It makes easy to implement Ruby/GTK and other library which support > GType system. > > But I read your comment, it may be better to separate 'glib', > 'gobject', and utilty functions ... > > Any comments? -- Markus Jais http://www.mjais.de in...@mj... The road goes ever on and on - Bilbo Baggins |
From: Masao M. <mu...@hi...> - 2002-09-15 12:21:36
|
Hi, On Sun, 15 Sep 2002 14:16:03 +0200 Markus Jais <mj...@we...> wrote: > Hello > I am not an expert an gtk and glib but I think your choice was a good one. > seperating it into many packages migth turn out to be confusing > > one suggestion when ruby-gnome2 is stable. > release two packages > > - one complete package with all the gnome stuff > - one package only with gtk2 and glib2 > > many users do not want to use gnome because it is not portable to windows Agreed. I'll release two packages as you say. > so, when you make a package gtk2 and glib2 and the installation process > can install both it is easy for the users and nobody has to worry about > gobject and all the stuff > > so I think it is good the way you did it. Thanks. -- .:% Masao Mutoh<mu...@hi...> |