From: Rakesh Pai Date: 2008-09-09T04:12:30+09:00 Subject: Re: Error when running an exe created with rubyscript2exe Erik Veenstra wrote: > RubyScript2Exe and RubyGems 1.2.0 don't play very well together: > > http://groups.google.com/group/ruby-talk-google/browse_frm/thread/f922ec9ef52af7e4 > http://rubyforge.org//tracker/index.php?func=detail&aid=21467&group_id=126&atid=575 > > Add "require 'rubygems'" _in_ your application and temporarily > remove rubygems from RUBYOPT before compiling: > > $ RUBYOPT= ruby rubyscript2exe.rb test.rb > > Or: > > C:\> unset RUBYOPT > C:\> ruby rubyscript2exe.rb test.rb > > That seems to work. At least, on my machine... > > gegroet, > Erik V. - http://www.erikveen.dds.nl/ Thanks for the help guys. It seems there is some problem with RubyScript2Exe as Erik mentioed. I am still getting ther error when i create the exe with the command "ruby rubyscript2exe.rb test.rb". But when i installed gem install rubyscript2exe.rb and then converted it to exe by giving 'rubyscript2exe test.rb' the exe is working properly. I am kind of novice in ruby, so not sure if i missed anything trivial earlier . Best Regards, Rakesh -- Posted via http://www.ruby-forum.com/.