in reply to Re^2: Build EXE without CPAN access
in thread Build EXE without CPAN access

If you have a browser on the target machine, you can download the modules from CPAN and install the modules through the cpan tool from the distribution files directly, most likely with the cpan tool but certainly with the cpanm tool:

cpanm ~/downloads/MyCompany-Enterprise-1.00.tar.gz # install from a +local file

You can download and install cpanm via App::cpanminus.

Replies are listed 'Best First'.
Re^4: Build EXE without CPAN access
by v4169sgr (Sexton) on May 31, 2016 at 14:26 UTC
    Double checked and verified that any form of downloading - even from a browser URL - is interdicted. To be useful, any solution must not rely on downloading from CPAN ...

      Given you've already said:

      "literally copy paste from source links on CPAN web pages into an editor and write them to my Perl install..."

      above, you're already bypassing whatever foolish security restrictions you've got in place anyways, so do yourself a favour, from home, fetch all the modules you need and put them on a thumb drive (or just do the packaging at home or another location).

      Better yet, set up a CPAN::Mini on a thumb drive or laptop, then copy the whole shebang to your dev box, which you can then periodically update in the same manner.

      Beats copying manually by hand as you've said.

      Note that I'm not advising you bypass security if it means trouble. I'm just pointing out other options if you're going to get the exact same data in a much more manual, PITA method anyhow.

        On reflection, my working hypothesis to achieve nirvana and a future proof toolchain to an EXE is to:

        * Install Strawberry Perl from our locally maintained distribution

        * Use the method described in http://digitalcrunch.com/perl/how-to-use-par-with-strawberry-perl/, and work with appropriate teams to grab the 5 tarballs.

        Being a total novice to this sort of thing, I've no clue if 'dmake' somehow arrives with Strawberry Perl, or if there is some other dependency I need to satisfy, or even if it will run at all on my local machine ...

      So, instead of downloading, copy each file of a distribution into your editor and save it from there.