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 function
`rsvg_handle_get_title'
rbrsvghandle.c:273: warning: passing arg 1 of `rbg_cstr2rval' makes
pointer from integer without a cast
rbrsvghandle.c: In function `rg_desc':
rbrsvghandle.c:279: warning: implicit declaration of function
`rsvg_handle_get_desc'
rbrsvghandle.c:279: warning: passing arg 1 of `rbg_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,

-- 
Posted via http://www.ruby-forum.com/.