Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Build EXE without CPAN access

by v4169sgr (Sexton)
on May 31, 2016 at 12:10 UTC ( [id://1164579]=note: print w/replies, xml ) Need Help??


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

Thanks all for the replies so far.

The machine I am using is totally locked down. No USB access. No admin access - I have installed Perl to another location to avoid this. No possibility of downloading anything. No "fighting with admin privileges" - this will not even be attempted && whatever works for me will not attempt to bypass protection mechanisms and will work with the system as I find it. I was only able to install ActiveState Perl by jumping through several hoops - Strawberry Perl is a lot simpler in this respect.

Thanks for the pointer about ppm.bat - I didn't know about that. I can't made ppm.bat run on my machine, but ppm-shell.bat does do something. Can I use this to make a windows exe?

About the only things I can do are: 1. run something that is already included in a Perl distribution like Strawberry Perl; or 2. literally copy paste from source links on CPAN web pages into an editor and write them to my Perl install: no admin privileges required as I have installed elsewhere.

Thanks again for the replies - just wondering what is possible.

Replies are listed 'Best First'.
Re^3: Build EXE without CPAN access
by Corion (Patriarch) on May 31, 2016 at 12:44 UTC

    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.

      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.

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

Re^3: Build EXE without CPAN access
by soonix (Canon) on Jun 01, 2016 at 06:51 UTC
    … I have installed Perl to another location …
    How did you do this and why can't you apply this to a minicpan?

    Another possibility might be Perl::Dist, specifically Perl::Dist::Strawberry seems to be actively maintained.

      Another possibility might be Perl::Dist, specifically Perl::Dist::Strawberry seems to be actively maintained.

      thats only if you want to create a .msi, which strawberryperl already provides, anyway since every win32 perl is "portable" just copy/paste "works"

Re^3: Build EXE without CPAN access
by Anonymous Monk on May 31, 2016 at 12:15 UTC

    Is this locked down machine a development system, or the same machine on which the script will later run? If the latter, why do you need to make an EXE at all?

      All machines here are locked down. I develop the script here on the local machine, then roll an EXE and distribute to my user community, so they don't have to install and use Perl directly ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1164579]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2024-04-16 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found