Creating executable

Hi!

I’ve tryed to create a helloworld executable following instructions
here: 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

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.” [email protected]
To: “ruby gtk2 list” [email protected]
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

Hi,

On Sun, 30 Apr 2006 21:02:12 +0200
Gergely K. [email protected] wrote:

Hi!

I’ve tryed to create a helloworld executable following instructions
here: 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.[email protected]


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

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

I tried to create an executable based on instructions here:
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

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. :frowning:

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

Gergo