From: Quintus Date: 2011-09-28T03:48:44+09:00 Subject: Re: no such file to load defaultDriver.rb -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 27.09.2011 20:22, schrieb Chase Wilson: > So I have an odd issue, when I run a ruby application by first > opening up a command window and then typing: > > "D:\Ruby186\bin\ruby.exe" 'C:\Program Files > (x86)\VUITOOLS\ce\gui\main.rb' > > my application works fine when I do that. This looks as if you're using Ruby 1.8.6. As far as I know wxRuby only supports Ruby >= 1.8.7. > However, If I run it by double clicking on an Icon that has that > same line as the "target" field, it opens up my gui using wxruby, > however it crashes once I begin a process. I had to take a quick > screen shot before the window closed, and the attached photo is > what I got. I have no idea what this means. The exception looks as if you somewhere require a file called "defaultDriver.rb" relative to the current working directory, and double-clicking on an icon sets your current working directory somewhere else, causing Ruby to not find that file. In Ruby 1.9 you would have spotted such an error right away as it disallows requiring files relative to the current directory by default with "require". You would have to use "require_relative" or modify your $:. It could also be caused by a too old version of RubyGems as the exception seems to come from somewhere inside RubyGems. > Any help would be great, please let me know if you need to see > anything else. $ ruby -v $ gem -v Vale, Marvin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOghprAAoJELh1XLHFkqhaQHYIAJXjx0C/u+rZ4j4MAbdi8RjU FSYfOEKcHh+HlQQSV7194YEZp+ukpK2O5mLJikOzjDWludHQQkbqbyCA7KNBgE4G i68vE9JIH9Aem9/P2q91PFK+rW/inhLUgxb6H3eexLrLYsMzDXM9kefNBaBfM2wH 7e+PEm+QOo7lcRgomhDOmMywnD+AfkJztouc4tBCuUDeS0B3g9DKoyzzk8Q/Mwg3 peWSugCb1NpDH+Ee2Jyk2c6jWgVu2yvZ9klYO6ESxhCocFXVpt47FqMt1TVBH/x6 GgPzeargv9kjCmmtl45vZhSm1N3vsZyAEctcdZlyOQHmyPOO4o57MKkCylTor5A= =n9Xv -----END PGP SIGNATURE-----