[fxruby-users] fxruby gem install problem

Tom Cloyd tomcloyd at comcast.net
Sun Apr 13 06:06:50 EDT 2008


Lyle,

Following up on your suggestion...

"You might want to follow-up on the fxruby-users mailing list at some 
point; sometimes FXRuby questions can get lost in the shuffle here due 
to the high volume of messages on ruby-talk!'

I've installed libfox-1.6-dev, and after that attempted install of 
fxruby, with this result:

$ sudo gem install fxruby
[sudo] password for tom:
Need to update 31 gems from http://gems.rubyforge.org
...............................
complete
Select which gem to install for your platform (i486-linux)
 1. fxruby 1.6.14 (universal-darwin-9)
 2. fxruby 1.6.14 (mswin32)
 3. fxruby 1.6.14 (ruby)
 4. fxruby 1.6.13 (ruby)
 5. fxruby 1.6.13 (mswin32)
 6. Skip this gem
 7. Cancel installation
 > 3
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
    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
cc -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude  -c librb.c
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c mdi_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c list_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c image_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c treelist_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c iconlist_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c dialogs_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c table_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c layout_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c markfuncs.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c dc_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c 
unregisterOwnedObjects.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c text_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c label_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c FXRbApp.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c core_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c icons_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c ui_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c menu_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c impl.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c FXRbGLViewer.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c frames_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c FXRuby.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c fx3d_wrap.cpp
g++ -I. -I. -I/usr/lib/ruby/1.8/i486-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 
-fno-strict-aliasing -g -O2  -fPIC -O0 -Iinclude   -c FXRbDataTarget.cpp
cc -shared -o fox16.so librb.o mdi_wrap.o list_wrap.o image_wrap.o 
treelist_wrap.o iconlist_wrap.o dialogs_wrap.o table_wrap.o 
layout_wrap.o markfuncs.o dc_wrap.o unregisterOwnedObjects.o text_wrap.o 
label_wrap.o FXRbApp.o core_wrap.o icons_wrap.o ui_wrap.o menu_wrap.o 
impl.o FXRbGLViewer.o frames_wrap.o FXRuby.o fx3d_wrap.o 
FXRbDataTarget.o -L"." -L"/usr/lib" -L"/usr/local/lib" -L.  -rdynamic 
-Wl,-export-dynamic    -lruby1.8 -lXrandr -lFOX-1.6 -lGLU -lGL -lX11 
-lXext -ltiff -ljpeg -lz -lpng -lstdc++  -lpthread -ldl -lcrypt -lm   -lc
/usr/bin/ld: cannot find -lXrandr
collect2: ld returned 1 exit status
make: *** [fox16.so] Error 1


Gem files will remain installed in /var/lib/gems/1.8/gems/fxruby-1.6.14 
for inspection.
Results logged to 
/var/lib/gems/1.8/gems/fxruby-1.6.14/ext/fox16/gem_make.out

I really cannot make sense of this. I'm hoping you can. At least it's a 
different problem than last time!

Thanks for any help you can offer.

Tom Cloyd


More information about the fxruby-users mailing list