Gtk2 install error

Hi,

I installed gem gtk2 on linux, but it show a error.

–> gem install gtk2

show below error message:


te.h:159: syntax error before “void”
rbgprivate.h:160: syntax error before “void”
rbgprivate.h:161: syntax error before “void”
rbgprivate.h:162: syntax error before “void”
rbgprivate.h:163: syntax error before “void”
rbgprivate.h:164: syntax error before “void”
rbgprivate.h:165: syntax error before “void”
rbgprivate.h:166: syntax error before “void”
rbgprivate.h:167: syntax error before “void”
rbgprivate.h:168: syntax error before “void”
rbgprivate.h:169: syntax error before “void”
make: *** [rbglib_timer.o] Error 1

I try to download “ruby-gnome2-all-1.1.2” and followed below command:

–> ruby extconf.rb
–> make && make install

show below error message:


rsvg2.h:61: syntax error before “void”
rsvg2.h:62: syntax error before “void”
rbrsvghandle.c: In function rg_title': rbrsvghandle.c:273: warning: implicit declaration of functionrsvg_handle_get_title’
rbrsvghandle.c:273: warning: passing arg 1 of rbg_cstr2rval' makes pointer from integer without a cast rbrsvghandle.c: In functionrg_desc’:
rbrsvghandle.c:279: warning: implicit declaration of function
rsvg_handle_get_desc' rbrsvghandle.c:279: warning: passing arg 1 ofrbg_cstr2rval’ makes
pointer from integer without a cast
make[2]: *** [rbrsvghandle.o] Error 1

SUCCEEDED: NONE
FAILED: glib2 gdk_pixbuf2 pango atk gtk2 rsvg2

Done.

How to fix this problem on RedHat3 ruby1.9.2

Thanks,

On Sun, 01 Apr 2012 22:59:09 +0900, CC Chen wrote:

How to fix this problem on RedHat3 ruby1.9.2

I’m not quite sure how useful this is for your scenario, but have you
tried RVM(Ruby Version Manager)? Although, I do see that you have the
latest ruby. Did you install ruby via your package manager, or compile
perhaps? If the latter, you may want to try RVM.

Also, what is your gem version?

HTH,

Thufir

hi CC,

I installed gem gtk2 on linux, but it show a error.

wish i could help more, but try posting this problem on the ‘Gnome 2’
section of this forum - that’s the spot for gtk2…

good luck!

  • j

THUFIR H. wrote in post #1054531:

On Mon, 02 Apr 2012 08:32:54 +0900, jake kaiden wrote:

hi CC,

I installed gem gtk2 on linux, but it show a error.

wish i could help more, but try posting this problem on the ‘Gnome 2’
section of this forum - that’s the spot for gtk2…

good luck!

  • j

or the RVM mailing list…

How to use RVM on redhat3 ?

On Mon, 02 Apr 2012 08:32:54 +0900, jake kaiden wrote:

hi CC,

I installed gem gtk2 on linux, but it show a error.

wish i could help more, but try posting this problem on the ‘Gnome 2’
section of this forum - that’s the spot for gtk2…

good luck!

  • j

or the RVM mailing list…

On Mon, 02 Apr 2012 16:49:01 +0900, CC Chen wrote:

or the RVM mailing list…

How to use RVM on redhat3 ?

Yes, exactly, if you’re trying to use RVM on redhat the rvm list is
helpful:

https://groups.google.com/forum/?fromgroups#!forum/rubyversionmanager

although I haven’t the slightest idea how to navigate their new
interface
to figure out the actual mailing address, but you can, somehow, send a
subscribe request to someone if you don’t like the web address.

There’s also an IRC channel on freenode. Not sure what you’re asking?

-Thufir

THUFIR H. wrote in post #1054748:

On Mon, 02 Apr 2012 16:49:01 +0900, CC Chen wrote:

or the RVM mailing list…

How to use RVM on redhat3 ?

Yes, exactly, if you’re trying to use RVM on redhat the rvm list is
helpful:

https://groups.google.com/forum/?fromgroups#!forum/rubyversionmanager

although I haven’t the slightest idea how to navigate their new
interface
to figure out the actual mailing address, but you can, somehow, send a
subscribe request to someone if you don’t like the web address.

There’s also an IRC channel on freenode. Not sure what you’re asking?

-Thufir

I try on redhat5/ruby1.9.2 also have some problem when I exce “gem
install gtk2”

Below are error message:

/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
-I/usr/include/pango-1.0 -o rbgtkprintsettings.o -c
rbgtkprintsettings.c
rbgtkprintsettings.c: In function ‘Init_gtk_print_settings’:
rbgtkprintsettings.c:704: error: ‘rg_initialize’ undeclared (first use
in this function)
rbgtkprintsettings.c:704: error: (Each undeclared identifier is reported
only once
rbgtkprintsettings.c:704: error: for each function it appears in.)
make: *** [rbgtkprintsettings.o] Error 1

How to fix the error?

On Wed, 04 Apr 2012 20:18:36 +0900, CC Chen wrote:

I try on redhat5/ruby1.9.2 also have some problem when I exce “gem
install gtk2”

Have you asked on the RVM mailing list? That’s my suggestion, the RVM
developers respond quite quickly:

https://groups.google.com/forum/?fromgroups#!forum/rubyversionmanager

Of course, the assumption is to use RVM.

HTH,

Thufir