Hi all, I''m trying to install fxruby 1.6.11 on my machine, but I obtain this error: [luca at mobilebox ~]$ sudo gem install fxruby Building native extensions. This could take a while... ERROR: While executing gem ... (RuntimeError) Error instaling fxruby: ERROR: Failed to build gem native extension. ruby extconf.rb install fxruby checking for sys/time.h... yes checking for signal.h... yes checking for png_create_read_struct() in -lpng... yes checking for deflate() in -lz... yes checking for jpeg_mem_init() in -ljpeg... yes checking for TIFFSetErrorHandler() in -ltiff... yes checking for XShmQueryVersion() in -lXext... yes checking for XFindContext() in -lX11... yes checking for glXCreateContext() in -lGL... yes checking for gluNewQuadric() in -lGLU... yes creating Makefile make gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_SYS_TIME_H -DHAVE_SIGNAL_H -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.6 -I/usr/include/fox-1.6 -fPIC -march=i686 -mtune=generic -O2 -pipe -fPIC -O0 -Iinclude -c librb.c g++ -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DHAVE_SYS_TIME_H -DHAVE_SIGNAL_H -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.6 -I/usr/include/fox-1.6 -fPIC -march=i686 -mtune=generic -O2 -pipe -fPIC -O0 -Iinclude -c ui_wrap.cpp In file included from /usr/lib/ruby/1.8/i686-linux/ruby.h:719, from ui_wrap.cpp:33: /usr/lib/ruby/1.8/i686-linux/intern.h:207: error: use of enum ''rb_thread_status'' without previous declaration /usr/lib/ruby/1.8/i686-linux/intern.h:207: error: invalid type in declaration before '';'' token In file included from include/FXRuby.h:825, from include/FXRbCommon.h:93, from ui_wrap.cpp:584: include/inlinestubs.h: In function ''void FXApp_init(FX::FXApp*, VALUE, bool)'': include/inlinestubs.h:20: warning: deprecated conversion from string constant to ''char*'' make: *** [ui_wrap.o] Error 1 Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.11 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.11/ext/fox16/gem_make.out I also tried with source package but with no luck. Some info: ruby 1.8.6 (2007-06-07 patchlevel 36) [i686-linux] gem 0.9.4 fox 1.6.27 gcc 4.2.1 Any ideas?
On Jul 28, 2007, at 9:00 AM, Luca Peduto wrote:> I''m trying to install fxruby 1.6.11 on my machine, but I obtain > this error:<snip>> In file included from /usr/lib/ruby/1.8/i686-linux/ruby.h:719, > from ui_wrap.cpp:33: > /usr/lib/ruby/1.8/i686-linux/intern.h:207: error: use of enum > ''rb_thread_status'' without previous declaration > /usr/lib/ruby/1.8/i686-linux/intern.h:207: error: invalid type in > declaration before '';'' token > In file included from include/FXRuby.h:825, > from include/FXRbCommon.h:93, > from ui_wrap.cpp:584: > include/inlinestubs.h: In function ''void FXApp_init(FX::FXApp*, > VALUE, bool)'': > include/inlinestubs.h:20: warning: deprecated conversion from string > constant to ''char*'' > make: *** [ui_wrap.o] Error 1This is a known bug in Ruby 1.8.6-p36; see the ruby-core thread that begins here: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/11499 The bug is allegedly fixed in the Subversion repository for 1.8.6, so you can either downgrade to 1.8.6 (the original release, a.k.a. patch level 0) or check out the latest code from the 1.8.6 branch and use that.