All,
The latest release of FXRuby is now available for download:
http://sourceforge.net/project/showfiles.php?group_id=20243&release_id=136352
In addition to the usual assortment of bug fixes and other changes, this
release includes the “preview” API documentation in RDoc style. For a
complete list of the changes for this release, please see:
http://www.fxruby.org/doc/changes.html
Enjoy,
Lyle
After installing FXRuby v1.0.18 over Ruby v1.6.8 (using the correct binary), I get this error when
trying to require fox.
C:\ruby\bin\ruby.exe -e “require ‘fox’”
-e:1:in require': No such file to load -- fox/version (LoadError) from -e:1:in
require’
from -e:1
What did I do wrong THIS time? 
Jason
···
— Lyle Johnson lyle@users.sourceforge.net wrote:
All,
The latest release of FXRuby is now available for download:
FXRuby - Browse Files at SourceForge.net
In addition to the usual assortment of bug fixes and other changes, this
release includes the “preview” API documentation in RDoc style. For a
complete list of the changes for this release, please see:
http://www.fxruby.org/doc/changes.html
Enjoy,
Lyle
Hi Lyle,
In article v3ba374s0vje6b@corp.supernews.com,
Lyle Johnson lyle@users.sourceforge.net writes:
All,
The latest release of FXRuby is now available for download:
FXRuby - Browse Files at SourceForge.net
I installed ruby
$ ruby -v
ruby 1.8.0 (2003-01-23) [i686-linux]
and after that fox-1.0.30 and then FXRuby-1.0.18:
$ ruby install.rb config –
–with-fox-include=/home/martin/Ruby/include/fox
–with-fox-lib=/home/martin/Ruby/lib
install.rb: entering config phase…
—> lib
—> lib/fox
<— lib/fox
<— lib
—> ext
—> ext/fox
/home/martin/Ruby/bin/ruby /home/martin/FXRuby-1.0.18/ext/fox/extconf.rb
–with-fox-include=/home/martin/Ruby/include/fox
–with-fox-lib=/home/martin/Ruby/lib
install.rb:397: warning: Insecure world writable dir /home/martin/Ruby/bin,
mode 040777
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… no
creating Makefile
—> ext/fox/include
<— ext/fox/include
<— ext/fox
<— ext
install.rb: config done.
$ ruby install.rb setup
$ ruby install.rb install
$ irb
irb(main):001:0> require ‘fox’
LoadError: No such file to load – opengl
from /home/martin/Ruby/lib/ruby/site_ruby/1.8/fox/glgroup.rb:2:in `require’
from /home/martin/Ruby/lib/ruby/site_ruby/1.8/fox/glgroup.rb:2
Any suggestions?
Thanks for any hints in advance,
Martin.
Martin Kahlert wrote:
$ irb
irb(main):001:0> require ‘fox’
LoadError: No such file to load – opengl
from /home/martin/Ruby/lib/ruby/site_ruby/1.8/fox/glgroup.rb:2:in `require’
from /home/martin/Ruby/lib/ruby/site_ruby/1.8/fox/glgroup.rb:2
Any suggestions?
FXRuby-1.0.18 introduced an unintended dependency on Ruby/OpenGL. This
is being fixed for FXRuby-1.0.19, but the easy fix is to just modify the
top of your /home/martin/Ruby/lib/ruby/site_ruby/1.8/fox/glgroup.rb file
to look like this:
require 'fox'
begin
require 'opengl'
rescue LoadError
# Ruby/OpenGL isn't installed, so you
# won't be able to use the FXGLGroup class
end
Hope this helps,
Lyle