basiliscos has asked for the wisdom of the Perl Monks concerning the following question:
Hello dear monks!
Is it possible to bundle the Mojolicious web-application as single binary executable? I need that for the following purposes:
For that purposes, I have tried App::Staticperl from famous Mark Lehmann, but I have met the following problem:
staticperl mkapp app --boot path/to/my/launcher -M strict.pm -M warnin +gs.pm -MFindBin -M Mojo::Server::Hypnotoad ERROR: Can't open file "/loader/0xc800d0/Mojo/entities.txt": No such f +ile or directory at /loader/0xc800d0/Mojo/Loader.pm line 7. Compilation failed in require at /loader/0xc800d0/Mojo/Loader.pm line +7, <$R_TRACER> line 4. BEGIN failed--compilation aborted at /loader/0xc800d0/Mojo/Loader.pm l +ine 7, <$R_TRACER> line 4. Compilation failed in require at /loader/0xc800d0/Mojo/Server.pm line +5, <$R_TRACER> line 4. BEGIN failed--compilation aborted at /loader/0xc800d0/Mojo/Server.pm l +ine 5, <$R_TRACER> line 4. Compilation failed in require at /loader/0xc800d0/Mojo/Base.pm line 30 +, <$R_TRACER> line 4. BEGIN failed--compilation aborted at /loader/0xc800d0/Mojo/Server/Daem +on.pm line 2, <$R_TRACER> line 4. Compilation failed in require at /loader/0xc800d0/Mojo/Base.pm line 30 +, <$R_TRACER> line 4. BEGIN failed--compilation aborted at /loader/0xc800d0/Mojo/Server/Pref +ork.pm line 2, <$R_TRACER> line 4. Compilation failed in require at /loader/0xc800d0/Mojo/Server/Hypnotoa +d.pm line 9, <$R_TRACER> line 4. BEGIN failed--compilation aborted at /loader/0xc800d0/Mojo/Server/Hypn +otoad.pm line 9, <$R_TRACER> line 4. Compilation failed in require at (eval 4) line 1, <$R_TRACER> line 4. BEGIN failed--compilation aborted at (eval 4) line 1, <$R_TRACER> line + 4. (while loading 'Mojo::Server::Hypnotoad') processing bundle files (try more -v power if you get bored waiting he +re)... generating bundle.h... generating bundle.c... 440353 octets (356853 data octets). ... build app...
Now I'm not even sure, that this is possible. Does anybody have success in similar task? Is there alternative solution for the 2nd goal?
The similar question: I also need to build portable (i.e. which could be just launched from flash-drive without any installation) win32 application with OpenGL support (i.e. something like game). How to do that? Any successful receipts?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: staticperl ( and Mojolicious )
by wjw (Priest) on May 12, 2014 at 19:37 UTC | |
by basiliscos (Pilgrim) on May 13, 2014 at 13:36 UTC |