# About exerb--when i use other gem

**URL:** <https://www.ruby-forum.com/t/about-exerb-when-i-use-other-gem/133996>\
**Category:** Ruby\
**Created:** [April 6, 2008, 11:07am UTC](https://www.ruby-forum.com/t/about-exerb-when-i-use-other-gem/133996 "2008-04-06T11:07:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oztoto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/7ea924/32.png) [@oztoto](https://www.ruby-forum.com/u/oztoto)\
**Post date:** [April 6, 2008, 11:07am UTC](https://www.ruby-forum.com/t/about-exerb-when-i-use-other-gem/133996/1 "2008-04-06T11:07:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![oztoto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/7ea924/32.png) [@oztoto](https://www.ruby-forum.com/u/oztoto)\
**Post date:** [April 6, 2008, 11:29am UTC](https://www.ruby-forum.com/t/about-exerb-when-i-use-other-gem/133996/2 "2008-04-06T11:29:19Z")

</div>

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

* * *

---

<div class="post-metadata">

**Author:** ![oztoto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/7ea924/32.png) [@oztoto](https://www.ruby-forum.com/u/oztoto)\
**Post date:** [April 6, 2008, 7:01pm UTC](https://www.ruby-forum.com/t/about-exerb-when-i-use-other-gem/133996/3 "2008-04-06T19:01:02Z")

</div>

On 6 abr, 06:29, Toto T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> * * *
> 
> 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,
