[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

About exerb--when i use other gem

Toto Toto

4/6/2008 9:08:00 AM

I want to generate .rb file to .exe file in windows by using exerb.

And my ruby program contains some gems(for example: Watir)

but when i display .exe in command line

this error comes:

why?~~

------------------------------------------------------------------------
D:\>test_watir.exe
test_watir.rb:1:in `require': No such file to load -- watir (LoadError)
from test_watir.rb:1
-------------------------------------------------------------------------
--
Posted via http://www.ruby-....

2 Answers

Toto Toto

4/6/2008 9:29:00 AM

0

And i just try to do this:

D:\>mkexy test_watir.rb

D:\>exerb test_watir.exy

D:\>test_watir.exe


and this error comes:

-------------------------------------------------------------------------------
D:\>test_watir.exe
watir.rb:129:in `initialize': LoadLibrary: D:\My Ruby
Case\send_tieba\watir\IEDi
alog\Release\IEDialog.dll
(RuntimeError)
from watir.rb:129:in `new'
from watir.rb:129

--------------------------------------------------------------------------------
--
Posted via http://www.ruby-....

Luis Lavena

4/6/2008 4:55:00 PM

0

On 6 abr, 06:29, Toto Toto <ozto...@gmail.com> wrote:
> And i just try to do this:
>
> D:\>mkexy test_watir.rb
>
> D:\>exerb test_watir.exy
>
> D:\>test_watir.exe
>
> and this error comes:
>
> -------------------------------------------------------------------------------
> D:\>test_watir.exe
> watir.rb:129:in `initialize': LoadLibrary: D:\My Ruby
> Case\send_tieba\watir\IEDi
> alog\Release\IEDialog.dll
> (RuntimeError)
> from watir.rb:129:in `new'
> from watir.rb:129
>

Exerb will only package extensions (.so) and .rb files used by your
application. DLL on those extensions depend on need to be in the PATH
or in the same directory the generated EXE is in.

Also, avoid generating or using stuff in directories that contains
spaces (Like D:\My Ruby Case) since some tools don't handle that
properly (don't know how exerb handle that.)

HTH,
--
Luis Lavena