# Creating executable

**URL:** <https://www.ruby-forum.com/t/creating-executable/59308>\
**Category:** Ruby-Gnome 2\
**Created:** [May 3, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/creating-executable/59308 "2006-05-03T18:56:39Z")\
**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:** [May 3, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/creating-executable/59308/1 "2006-05-03T18:56:39Z")

</div>

Hi!

I’ve tryed to create a helloworld executable following instructions  
here: [http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips\_rubyscript2exe](http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_rubyscript2exe)

Creating rubyrequired.tar…  
d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:73:in  
`delete': Permission denied - _locale.so (Errno::EACCES) from d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:73:in `rm\_rf’  
from  
d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:81:in `rm_rf' from d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:80:in `each’  
from  
d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:80:in `rm_rf' from d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:81:in `rm\_rf’  
from  
d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:80:in `each' from d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:80:in `rm\_rf’  
from  
d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:81:in `rm_rf' from d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:80:in `each’  
from  
d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:80:in `rm_rf' from d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:66:in `createtar’  
from  
d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:14  
from  
d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:12  
Gathering files…  
Packing…  
Creating hello.exe …

Now what? I cannot do anything with that error. I don’t have \_locale.so.  
Should I?

thx

---

<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:** [May 3, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/creating-executable/59308/2 "2006-05-03T19:06:37Z")

</div>

Hey Gergely,

When you go to bind the program with rubyscript2exe, it looks for all  
loaded  
features, before it actually brings up the program. From what I’m  
reading  
from that, it’s trying to find one of the GTK Locale files to be  
included  
with it, the Locale files look like: en\_locale.so or fr\_locale.so, etc,  
etc, etc. These are needed to translate any text widgets you have in  
your  
program, into the Computer’s Localized Language, such as English,  
French,  
Japanese, etc, etc, etc.

When you go to run hello.exe, does it run alright, or does it have  
problems?  
And, do you have another system to test it on, that doesn’t have Base  
GTK  
Install on it, so you can test it to see if it will work with the stuff  
you  
setup for your distro of the Executable?

Let us know what’s up,

Mario S.

----- Original Message -----  
From: “Gergely K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: “ruby gtk2 list” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Sunday, April 30, 2006 2:02 PM  
Subject: [ruby-gnome2-devel-en] creating executable

* * *

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:** [May 4, 2006, 6:31am UTC](https://www.ruby-forum.com/t/creating-executable/59308/3 "2006-05-04T06:31:48Z")

</div>

Hi,

On Sun, 30 Apr 2006 21:02:12 +0200  
Gergely K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi!
> 
> I’ve tryed to create a helloworld executable following instructions  
> here: [http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips\_rubyscript2exe](http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_rubyscript2exe)
> 
> Creating rubyrequired.tar…  
> d:\tmp\tar2rubyscript.d.1284\rubyscript2exe\require2tar.rb:73:in `delete’: Permission denied - \_locale.so (Errno::EACCES)

> Now what? I cannot do anything with that error. I don’t have \_locale.so.

\_locale.so is the file of Ruby-GetText-Package. It is included in  
ruby-gtk2  
binary package.

It may be better to remove your-ruby/lib/site-ruby/1.8/gettext\* and  
your-ruby/lib/site-ruby/1.8/i386-msvcrt/\_locale.so once.

Then, rubyscript2.exe may work correctly.

After that, if you need Ruby-GetText-Package, install it using gem.

% gem install gettext

HTH,

–  
.:% Masao M.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

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 17, 2006, 5:31pm UTC](https://www.ruby-forum.com/t/creating-executable/59308/4 "2006-06-17T17:31:36Z")

</div>

Hi!

I’ve some progress in creating executables.

Given a simple helloworld program pasted from here:  
[http://ruby-gnome2.sourceforge.jp/hiki.cgi?cmd=view&p=tut-gtk-helloworld&key=hello%2Bworld](http://ruby-gnome2.sourceforge.jp/hiki.cgi?cmd=view&p=tut-gtk-helloworld&key=hello%2Bworld)

I tried to create an executable based on instructions here:  
[http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips\_rubyscript2exe](http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_rubyscript2exe)

The result is here (gtk works, but there are no fonts at all!)  
(i’ve moved the installed gtk to another directory, and works the same  
way)  
Running without any hassle works, so I guess I have a complete ruby and  
gtk installed.

My d:\tmp\ruby listing can be found here, I’m not sure I’ve done things  
right:  
www.mcl.hu/~kgergely/tryingtobuildhere.list.gz

BTW, I copied a ruby installation and a gtk installation to d:\tmp\ruby  
except the 3 dlls mentioned in the howto

D:\tmp\ruby\bin\>ruby rubyscript2exe.rb hello.rb  
Tracing hello …  
Hello World  
Hello World  
Hello World  
Hello World  
delete event occurred  
destroy event occurred  
Gathering files…  
Copying files…  
Creating hello.exe …

D:\tmp\ruby\bin\>hello.exe  
d:\tmp\eee.hello.exe.2\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.2\etc\pango\pango.modules’  
You should create this file by running pango-querymodules.  
d:\tmp\eee.hello.exe.2\app\hello.rb: line 11  
Pango-WARNING \*\*:pango\_shape called with bad font, expect ugly output  
d:\tmp\eee.hello.exe.2\app\hello.rb: line 11  
Pango-WARNING \*\*:pango\_font\_get\_glyph\_extents called with bad font,  
expect ugly output

thnks  
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:** [May 11, 2006, 12:21am UTC](https://www.ruby-forum.com/t/creating-executable/59308/5 "2006-05-11T00:21:30Z")

</div>

Masao M. azt Ã­rta, hogy:

> It may be better to remove your-ruby/lib/site-ruby/1.8/gettext\* and  
> your-ruby/lib/site-ruby/1.8/i386-msvcrt/\_locale.so once.

Hi!

No luck, I cannot find the named files. ☹

Anyway hungry for some easy method to create an executable. Maybe a bit  
easier way…

Gergo
