# Pleeease help - rubyscript2exe

**URL:** <https://www.ruby-forum.com/t/pleeease-help-rubyscript2exe/96138>\
**Category:** Ruby-Gnome 2\
**Created:** [June 26, 2006, 7:35pm UTC](https://www.ruby-forum.com/t/pleeease-help-rubyscript2exe/96138 "2006-06-26T19:35:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gergely\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@Gergely\_K](https://www.ruby-forum.com/u/Gergely_K)\
**Post date:** [June 26, 2006, 7:35pm UTC](https://www.ruby-forum.com/t/pleeease-help-rubyscript2exe/96138/1 "2006-06-26T19:35:02Z")

</div>

Hi!

Has anybody success with making standalone executables.  
I’m unable to figure out what’s wrong with my method:

Installed ruby oneclick installer, installed gtk2.8.18-rc1, tried  
hello.rb, works.  
putting all dlls (except the mentioned 3) to ruby’s bin dir, copying  
etc/share/lib to both ruby root and ruby/bin, running rubyscript2exe  
from ruby’s bin directory (hello.rb is there), works, pango works.

Starting the executable, and I get squares for every letter ☹

The output of the example follows:  
D:\tmp\hello\>hello.exe  
d:\tmp\eee.hello.exe.5\app\hello.rb: line 11  
Pango-WARNING \*\*:No builtin or dynamically  
loaded modules were found. Pango will not work correctly.  
This probably means there was an error in the creation of:  
‘d:\tmp\eee.hello.exe.5\etc\pango\pango.modules’  
You should create this file by running pango-querymodules.  
d:\tmp\eee.hello.exe.5\app\hello.rb: line 11  
Pango-WARNING \*\*:pango\_shape called with bad font, expect ugly output  
d:\tmp\eee.hello.exe.5\app\hello.rb: line 11  
Pango-WARNING \*\*:pango\_font\_get\_glyph\_extents called with bad font,  
expect ugly output  
d:\tmp\eee.hello.exe.5\app\hello.rb: line 11  
Pango-WARNING \*\*:pango\_font\_get\_font\_map called with bad font, expect  
ugly output  
d:\tmp\eee.hello.exe.5\app\hello.rb: line 11  
Pango-CRITICAL \*\*:\_pango\_cairo\_font\_map\_get\_renderer: assertion  
`PANGO\_IS\_CAIRO\_FONT\_MAP (fontmap)’ failed  
d:\tmp\eee.hello.exe.5\app\hello.rb: line 11  
Pango-WARNING \*\*:\_pango\_cairo\_font\_install called with bad font,  
expect ugly output

---

<div class="post-metadata">

**Author:** ![Gergely\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@Gergely\_K](https://www.ruby-forum.com/u/Gergely_K)\
**Post date:** [June 26, 2006, 11:13pm UTC](https://www.ruby-forum.com/t/pleeease-help-rubyscript2exe/96138/2 "2006-06-26T23:13:19Z")

</div>

Hi Gergely,

My only guess is that you did something wrong at the final step. Quote  
from the wiki:

"In the end, you need to ship to your user a directory with:

- yourapp.exe (which embeds the ruby interpreter, ruby dependencies and  
the GTK dlls except three)
- the three dlls libgtk-win32, libgdk\_pixbuf, libpango  
\*the three directories etc/, lib/ and share/"

Those three directories are the same that you copied to c:\ruby\

HTH 😕

Mathieu

Gergely K. a écrit :

> ## Starting the executable, and I get squares for every letter ☹ Pango-WARNING \*\*:pango\_shape called with bad font, expect ugly output
> 
> removed\_email\_address@domain.invalid  
> [ruby-gnome2-devel-en List Signup and Options](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
Mathieu B.  
[http://www.mblondel.org](http://www.mblondel.org)

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![Gergely\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@Gergely\_K](https://www.ruby-forum.com/u/Gergely_K)\
**Post date:** [June 27, 2006, 12:03am UTC](https://www.ruby-forum.com/t/pleeease-help-rubyscript2exe/96138/3 "2006-06-27T00:03:38Z")

</div>

Mathieu B. azt Ã­rta, hogy:

> \*the three directories etc/, lib/ and share/"  
> I do have them in the same directory.  
> But

I’m still on the machine where I was able to run my program as a ruby  
project. So I can run hello.rb, but I cannot run in the same directory  
hello.exe 😮

---

<div class="post-metadata">

**Author:** ![Gergely\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@Gergely\_K](https://www.ruby-forum.com/u/Gergely_K)\
**Post date:** [June 28, 2006, 9:51pm UTC](https://www.ruby-forum.com/t/pleeease-help-rubyscript2exe/96138/4 "2006-06-28T21:51:36Z")

</div>

Mathieu B. azt Ã­rta, hogy:

> \*the three directories etc/, lib/ and share/"
> 
> Those three directories are the same that you copied to c:\ruby\

Compiling the same C program (hello world), and running it from the same  
directory runs without problem (fonts are ok).

Anyway, rubyscript2exe can figure out and embed the gtk dlls.

Gergo

---

<div class="post-metadata">

**Author:** ![Gergely\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@Gergely\_K](https://www.ruby-forum.com/u/Gergely_K)\
**Post date:** [June 29, 2006, 6:49pm UTC](https://www.ruby-forum.com/t/pleeease-help-rubyscript2exe/96138/5 "2006-06-29T18:49:25Z")

</div>

Gergely K. azt Ã­rta, hogy:

Well, so if I don’t copy the 3 dlls, as stated in the tutorial,  
rubyscript2exe still find it and pack them to the executable!!!  
It happily unpacks it, but it doesn’t copy the etc, share and lib  
subdirectories, that’s why it prints what it prints…

So, can somebody create a little screencast (can be used not just to  
solve my problem, but show to the world 🙂

Or

can somebody please send me relevant logs, whatever, which helps me  
figure out what did I do wrong?

thx

Gergo

> > > d:\tmp\eee.hello.exe.5\app\hello.rb: line 11
> > > 
> > > [ruby-gnome2-devel-en List Signup and Options](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

> Using Tomcat but need to do more? Need to support web services, security?  
> Get stuff done quickly with pre-integrated technology to make your job easier  
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo  
> [http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)
