From: Bernard Kenik Date: 2008-09-06T03:22:24+09:00 Subject: Re: Error when running an exe created with rubyscript2exe Rakesh Pai wrote: > > I am getting the following error when i created an exe from a ruby > script. Has any got any idea why this comes? > > Thanks, > Rakesh > > C:/Users/Pi/eee/eee.livequote1.exe.3/lib/rubygems/custom_require.rb:27:in > `gem_o > riginal_require': no such file to load -- tempfile (LoadError) > from > C:/Users/Pi/eee/eee.livequote1.exe.3/lib/rubygems/custom_require.rb > :27:in `require' > from C:/Users/Pi/eee/eee.livequote1.exe.3/lib/open-uri.rb:302:in > `<<' > from C:/Users/Pi/eee/eee.livequote1.exe.3/lib/open-uri.rb:259:in > `open_h > ttp' > from > C:/Users/Pi/eee/eee.livequote1.exe.3/lib/net/protocol.rb:381:in `ca > ll_block' > from > C:/Users/Pi/eee/eee.livequote1.exe.3/lib/net/protocol.rb:372:in `<< > ' > from > C:/Users/Pi/eee/eee.livequote1.exe.3/lib/net/protocol.rb:88:in `rea > d' > from > C:/Users/Pi/eee/eee.livequote1.exe.3/lib/net/http.rb:2221:in `read_ > body_0' > from > C:/Users/Pi/eee/eee.livequote1.exe.3/lib/net/http.rb:2182:in `read_ > body' > ... 16 levels... > from > C:\Users\Pi\eee\eee.livequote1.exe.3\app\livequote1.rb:61:in `each' > > from C:\Users\Pi\eee\eee.livequote1.exe.3\app\livequote1.rb:61 > from C:\Users\Pi\eee\eee.livequote1.exe.3\bootstrap.rb:77:in > `load' > from C:\Users\Pi\eee\eee.livequote1.exe.3\bootstrap.rb:77 You need to "require" any gem that are required by a gem that you did required. For example: watir requires win32ole and activesupport normally you would not specifically require win32ole and activesupport but you do if you want to create an "exec" program with rubyscript2exe Hope that helps -- Posted via http://www.ruby-forum.com/.