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
On Apr 13, 2008, at 5:06 AM, Tom Cloyd wrote:> I''ve installed libfox-1.6-dev, and after that attempted install of > fxruby, with this result: > > $ sudo gem install fxruby<snip>> /usr/bin/ld: cannot find -lXrandr > collect2: ld returned 1 exit status > make: *** [fox16.so] Error 1OK, so it looks like the libfox-1.6-dev package depends on something called libXrandr.so, which I know is one of the X windows extension libraries. I don''t know why the person who built the FOX package for Ubuntu wouldn''t have made that an automatically-included dependency, but then again I don''t really use Ubuntu on a regular basis. At any rate, it looks like you need to install that library as well to get FXRuby to build. When I google for "ubuntu xrandr", I get some hits for the package name "xrandr", so I guess that''s what you want (not sure): sudo apt-get install xrandr If anyone else reading is more up-to-speed on Ubuntu, please chime in with the correct incantation! Hope this helps, Lyle
Lyle Johnson wrote:> On Apr 13, 2008, at 5:06 AM, Tom Cloyd wrote >> I''ve installed libfox-1.6-dev, and after that attempted install of >> fxruby, with this result: >> >> $ sudo gem install fxruby >> > > <snip> > > >> /usr/bin/ld: cannot find -lXrandr >> collect2: ld returned 1 exit status >> make: *** [fox16.so] Error 1 >> > > OK, so it looks like the libfox-1.6-dev package depends on something > called libXrandr.so, which I know is one of the X windows extension > libraries. I don''t know why the person who built the FOX package for > Ubuntu wouldn''t have made that an automatically-included dependency, > but then again I don''t really use Ubuntu on a regular basis. > > At any rate, it looks like you need to install that library as well to > get FXRuby to build. When I google for "ubuntu xrandr", I get some > hits for the package name "xrandr", so I guess that''s what you want > (not sure): > > sudo apt-get install xrandr >[snip] I can report a success! I go to it by reasoning that since I had to install (from the ''buntu repositories) libfox-1.6-dev, that just possibly the "libXrandr..." file(s) might be also there. Looking there for "xandr", I found "libxrandr-dev". I installed it, and attempted to install fxruby. It went flawlessly. (sigh) Thanks for your thoughts and help. Can I assist "the cause" by reporting this issue somewhere? I looked a bit for some obvious place, and didn''t see it, but then there''s a lot I don''t know, so I may have overlooked something pretty obvious. t. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tom Cloyd, MS MA, LMHC Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << tc at tomcloyd.com >> (email) << TomCloyd.com >> (website & psychotherapy weblog) << sleightmind.wordpress.com >> (mental health issues weblog) << directpathdesign.com >> (web site design & consultation) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Apr 14, 2008, at 10:45 PM, Tom Cloyd wrote:> I can report a success!Great! Thanks for sticking with it!> Can I assist "the cause" by reporting this issue somewhere? I looked a > bit for some obvious place, and didn''t see it, but then there''s a > lot I > don''t know, so I may have overlooked something pretty obvious.I guess the first question to ask is whether apt-get is even supposed to automatically install dependencies for a package. Surely it is? Most package managers work that way, but maybe APT doesn''t. Assuming it *was* supposed to have installed the dependencies for libfox-1.6-dev at the same time that you installed that package, I guess the next step would be to try to get in touch with the maintainer of that package (again, if Ubuntu/Debian has the idea of package-specific maintainers). This problem that you''ve run into isn''t a problem with FOX per se --- it''s an issue with how that particular deb package is constructed. Again, I''m being vague simply because I don''t have much experience with Ubuntu and Debian. Hope this helps, Lyle