[fxruby-users] Fxruby 1.6.11 installation error

Luca Peduto l.peduto at gmail.com
Sat Jul 28 10:00:04 EDT 2007

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

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

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?

More information about the fxruby-users mailing list