didess has asked for the wisdom of the Perl Monks concerning the following question:
Hi !
I need a "minimal" RunTime Perl distribution to be installed on workstations running Windows (XP or higher).
By minimal, I mean that, for the lowest possible disk-cost, I get all basic language features for executing scripts:
no module, no pragma, (no "use ...), no debugging facility, no doc, no binary except "perl" : just "runtime".
Of course, I'll add supplementary pragmas and modules over this basis for scripts to be able to work ;-)!
Do you know whether any project exists like that?
If here is not the proper place to ask this question, where ?
Thanks to all in advance.
Re: minimal perl distro
by Corion (Patriarch) on Jul 28, 2010 at 07:55 UTC
|
I think that PAR::Packer can build such a minimal distribution for you, at least when you build an .exe file and then unpack its contents using any Zip utility. As an alternative, I would look at the miniperl.exe executable that gets built when you compile Perl. If you use miniperl.exe, you will be unable to dynamically load any modules that need a DLL or any C extension, so that might not be ideal.
| [reply] [d/l] [select] |
Re: minimal perl distro
by moritz (Cardinal) on Jul 28, 2010 at 08:03 UTC
|
If you don't need the abilty to use XS modules, you can take the miniperl exectuable that's created during the perl build process.
You could also look at the Debian perl packages for prior art, which separate the basic perl executable from most core modules, and from the documentation.
Perl 6 - links to (nearly) everything that is Perl 6.
| [reply] [d/l] |
Re: minimal perl distro
by JavaFan (Canon) on Jul 28, 2010 at 09:29 UTC
|
| [reply] |
Re: minimal perl distro
by davies (Prior) on Jul 28, 2010 at 10:41 UTC
|
In the msys distribution of git, there is a version of Perl 5.8.8. This comes with a library of modules (total under 10Mb). If you are prepared to put the work in (and know Perl better than I do), I would expect that you could strip this down to something much smaller. I have no idea how this compares to any other distributions that have been suggested.
Regards,
John Davies | [reply] |
|
LibZip - Create very low weight self executables. (This is the generator of TinyPerl).
| [reply] |
|