Forum: Ruby-Gnome 2 creating executable

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5f3fded38f3fc32223c53344055cf38c?d=identicon&s=25 Gergely Kontra (Guest)
on 2006-05-03 18:56
(Received via mailing list)
Hi!

I've tryed to create a helloworld executable following instructions
here: http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_ru...

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
F6daf9c009b967ea713e8bd8baff6c67?d=identicon&s=25 Mario Steele (Guest)
on 2006-05-03 19:06
(Received via mailing list)
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 Steele

----- Original Message -----
From: "Gergely Kontra" <kgergely@mcl.hu>
To: "ruby gtk2 list" <ruby-gnome2-devel-en@lists.sourceforge.net>
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...
9fe908f5593444a40be14a424c372e58?d=identicon&s=25 Masao Mutoh (Guest)
on 2006-05-04 06:31
(Received via mailing list)
Hi,

On Sun, 30 Apr 2006 21:02:12 +0200
Gergely Kontra <kgergely@mcl.hu> wrote:

> Hi!
>
> I've tryed to create a helloworld executable following instructions
> here: http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_ru...
>
> 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 Mutoh<mutoh@highway.ne.jp>


-------------------------------------------------------
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...
5f3fded38f3fc32223c53344055cf38c?d=identicon&s=25 Gergely Kontra (Guest)
on 2006-05-11 00:21
(Received via mailing list)
Masao Mutoh 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
5f3fded38f3fc32223c53344055cf38c?d=identicon&s=25 Gergely Kontra (Guest)
on 2006-06-17 17:31
(Received via mailing list)
Hi!

I've some progress in creating executables.

Given a simple helloworld program pasted from here:
http://ruby-gnome2.sourceforge.jp/hiki.cgi?cmd=vie...

I tried to create an executable based on instructions here:
http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_ru...

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
This topic is locked and can not be replied to.