Instead of ‘true’, I get the message:
LoadError: No such file to load – fox
···
I’ve installed the PragProg Windows version of Ruby 1.6.8, which has
set up the following filepaths:
REM Ruby Install -- do not edit this line
set TCL_LIBRARY=D:\Programs\Coding\Ruby\tcl\lib\tcl8.3
set RUBY_TCL_DLL=D:\Programs\Coding\Ruby\tcl\bin\tcl83.dll
set RUBY_TK_DLL=D:\Programs\Coding\Ruby\tcl\bin\tk83.dll
set path=%path%;D:\Programs\Coding\Ruby\bin
REM Ruby Install -- do not edit this line
The fox stuff has been installed to:
D:\Programs\Coding\Ruby\lib\ruby\site_ruby\1.6\fox
D:\Programs\Coding\Ruby\samples\FXRuby
D:\Programs\Coding\Ruby\doc\FXRuby
So far, I have read:
D:/Programs/Coding/Ruby/doc/FXRuby/doc/build.html
D:/Programs/Coding/Ruby/doc/FXRuby/doc/todo.html
D:\Programs\Coding\Ruby\doc\FXRuby\README.win32.txt
Instead of ‘true’, I get the message:
LoadError: No such file to load – fox
I’ve installed the PragProg Windows version of Ruby 1.6.8, which has
set up the following filepaths:
REM Ruby Install -- do not edit this line
set TCL_LIBRARY=D:\Programs\Coding\Ruby\tcl\lib\tcl8.3
set RUBY_TCL_DLL=D:\Programs\Coding\Ruby\tcl\bin\tcl83.dll
set RUBY_TK_DLL=D:\Programs\Coding\Ruby\tcl\bin\tk83.dll
set path=%path%;D:\Programs\Coding\Ruby\bin
REM Ruby Install -- do not edit this line
The fox stuff has been installed to:
D:\Programs\Coding\Ruby\lib\ruby\site_ruby\1.6\fox
D:\Programs\Coding\Ruby\samples\FXRuby
D:\Programs\Coding\Ruby\doc\FXRuby
OK, so for some reason Ruby is not seeing the “fox.so” shared library,
which on your system should have been installed to:
Instead of ‘true’, I get the message:
LoadError: No such file to load – fox
I’ve installed the PragProg Windows version of Ruby 1.6.8, which has
set up the following filepaths:
REM Ruby Install -- do not edit this line
set TCL_LIBRARY=D:\Programs\Coding\Ruby\tcl\lib\tcl8.3
set RUBY_TCL_DLL=D:\Programs\Coding\Ruby\tcl\bin\tcl83.dll
set RUBY_TK_DLL=D:\Programs\Coding\Ruby\tcl\bin\tk83.dll
set path=%path%;D:\Programs\Coding\Ruby\bin
REM Ruby Install -- do not edit this line
The fox stuff has been installed to:
D:\Programs\Coding\Ruby\lib\ruby\site_ruby\1.6\fox
D:\Programs\Coding\Ruby\samples\FXRuby
D:\Programs\Coding\Ruby\doc\FXRuby
OK, so for some reason Ruby is not seeing the “fox.so” shared library,
which on your system should have been installed to:
OK. You apparently have a an older, Cygwin-based installation of Ruby
that is taking precedence over the Pragmatic Programmer’s Ruby installer
(which is based on Visual C++). This is obvious from the paths listed in
Ruby’s “$:” library path; it’s showing “i386-cygwin” as the platform
instead of “i586-mswin32”.
I’m not sure how you got into this situation, or what is the best way to
fix it. If there is no entry in the “Add/Remove Programs” list for
Windows, you may need to manually uninstall Ruby (i.e. delete the
D:\Programs\Coding\Ruby directory completely) and then re-install using
the Pragmatic Programmers’ installer.
OK. You apparently have a an older, Cygwin-based installation of Ruby
that is taking precedence over the Pragmatic Programmer’s Ruby installer
(which is based on Visual C++). This is obvious from the paths listed in
Ruby’s “$:” library path; it’s showing “i386-cygwin” as the platform
instead of “i586-mswin32”.
I’m not sure how you got into this situation, or what is the best way to
fix it. If there is no entry in the “Add/Remove Programs” list for
Windows, you may need to manually uninstall Ruby (i.e. delete the
D:\Programs\Coding\Ruby directory completely) and then re-install using
the Pragmatic Programmers’ installer.
Yes - it’s (one of the) last of the Cygwin versions of the PragProg
installers that I’ve been using. (1.6.4-2).
Time to move up to MSVC technology at a guess, then!
Perhaps a warning of oldest usable versions of the Windows
installation could be placed in the readme.txt and the installation
notes files.
I’d write the update, but I’m not quite sure what the exact
restriction is…
Thanks again Lyle - I’ll clear out the old install and get a new one
and try again.
On Sun, 31 Aug 2003 04:03:54 +0100, Gawnsoft wrote (more or less):
On Sat, 30 Aug 2003 14:34:38 -0500, Lyle Johnson wrote (more or less):
…
OK. You apparently have a an older, Cygwin-based installation of Ruby
that is taking precedence over the Pragmatic Programmer’s Ruby installer
(which is based on Visual C++). This is obvious from the paths listed in
Ruby’s “$:” library path; it’s showing “i386-cygwin” as the platform
instead of “i586-mswin32”.
I’m not sure how you got into this situation, or what is the best way to
fix it. If there is no entry in the “Add/Remove Programs” list for
Windows, you may need to manually uninstall Ruby (i.e. delete the
D:\Programs\Coding\Ruby directory completely) and then re-install using
the Pragmatic Programmers’ installer.
Yes - it’s (one of the) last of the Cygwin versions of the PragProg
installers that I’ve been using. (1.6.4-2).
Time to move up to MSVC technology at a guess, then!
Perhaps a warning of oldest usable versions of the Windows
installation could be placed in the readme.txt and the installation
notes files.
I’d write the update, but I’m not quite sure what the exact
restriction is…
Thanks again Lyle - I’ll clear out the old install and get a new one
and try again.
Of course - now that I realise that I’m on 1.6.4, I now also realise
the FxRuby downloads I got were labelled for 1.6.8 at time of
download…
Still - it would be good for this info to be in the readme/install
notes too…
And that’s what you should get actually look to the upper left of
your screen there should be the window but it’ll be small resize it
or… add a button or something IN the window , i.e. try the next
examples in the tutorial like:
require ‘fox’
include Fox
theApp = FXApp.new
theMainWindow = FXMainWindow.new(theApp, “Hello”)
FXButton.new(theMainWindow, “Hello, World! lots more text to make sure
it shows”)
theApp.create
theMainWindow.show
theApp.run
and that’s it, now you should see the window with a long button with text.
Now that I’ve mastered ‘hello world’ buttons, I’d better get my mind
round the FOX paradigms.
Some good “community” resources are the FOX and FXRuby users’ mailing
lists. Information about each of these are linked from the FOX and
FXRuby home pages, respectively.
Good documentation resources include the FXRuby User’s Guide and API
documentation (found at the FXRuby home page); the FOX documentation
(found at the FOX home page); and the FOX Community Wiki Site (linked-to
from both the FXRuby and FOX home pages).