Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Windows installation woes

by syphilis (Archbishop)
on Nov 02, 2021 at 23:39 UTC ( [id://11138354]=note: print w/replies, xml ) Need Help??


in reply to Windows installation woes

The problem is gmake is disallowed by group object policy and there is no getting around that.

It's astounding that gmake is disallowed. Are you allowed to use any other flavour of 'make' - 'dmake' for example ? ... or a 'gmake.exe' that has been renamed to something else ?

The first thing to note about ppm packages is that they're all built using some flavour of 'make', and I fear that they would therefore also be disallowed under this brilliantly innovative "group object policy".
The second thing to note about ppm is that I think that all of the ppm repositories (which held the ppm packages that users could install) are no longer in existence,
If you can locate a ppm repo that holds (or even might hold) a ppm package for Tk and/or Devel::ptkdb, then post its location and I'll tell you how to ppm install it.
Essentially it's just (eg) ppm install full_URL_to_repo/Tk.ppd

Which leaves me CPAN , which also does not work

But CPAN utilizes a 'make' utility - which is 'gmake' by default on recent Strawberry Perls. Would your group object Police turn a blind eye to that ?
Can you even download the Tk source ?

Is it permissible for you to build Tk at home, and then copy the build to your work machine (say, from a USB stick) ?

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Windows installation woes
by chafelix (Novice) on Nov 03, 2021 at 06:59 UTC

    Thanks. I can download the tk source, no problem. I could even get momentarily the necessary admin rights to install strawberry-there is no objection to having perl running on my corporate machine. It's just overriding GPO that no one seems willing to do.

    Regarding renaming gmake , this is still blocked. The Cpan errors seem to imply some proxy issues, not gmake problems. And I am not sure what exactly is the problem.

    Regarding ppm, I'll try to find some old ppms. I will have them locally, so I hope ppm install will work

    I only run Linux at home, but suppose I could get a Windows machine and install Strawberry and the modules needed. What do I need to grab and copy?

      I could even get momentarily the necessary admin rights to install strawberry-there is no objection to having perl running on my corporate machine.

      If you grab a "portable" edition of Strawberry Perl, you can just install it into your user directory - no admin rights required. That would be my recommendation.
      Just download the perl-5.32.1 "Portable" edition (there's a choice of 32-bit or 64-bit, with most people opting for the latter) from https://strawberryperl.com/releases.html.
      Unpack the tarball into some directory (let's call it "Strawberry") in your user space.
      Then cd to that "Strawberry" folder and execute portableshell.bat. You're then set to go with strawberry perl.

      Strawberry provides you with its own gmake.exe and gcc toolchain - and portableshell.bat has already prepended the location of those needed tools to your PATH environment variable.

      You could then download the Tk source tarball to some location in your user directory, cd to that location and run 'cpan .' (without the quotes).
      This means that the cpan utility does not have to perform the download (which was problematic for you).

      If you're uncomfortable about using the gmake.exe provided by Strawberry (in c/bin) then let us know and we'll tell you how to get set up with dmake.exe (which is the make utlity that Strawberry used to use, and should still work fine.)
      It's best if you could use that gmake.exe that Strawberry provides - with dmake.exe there might be a couple of hoops to jump through, though it should still be readily do-able.

      Cheers,
      Rob

        I have strawberry installed. So I can run perl (without modules such as Tk)

        I'm not sure dmake would actually be allowed

        C:\perladdons>dir

        Volume in drive C is OS

        Volume Serial Number is 22FB-140E

        Directory of C:\perladdons

        03/11/2021 01:56 μμ <DIR> .

        03/11/2021 01:56 μμ <DIR> ..

        03/11/2021 08:55 πμ <DIR> Tk-804.036

        14/02/2021 02:43 μμ 30.709.760 tk.tar

        02/11/2021 11:44 πμ 7.024.993 Tk.tar.gz

        (I renamed the .tar and .tar.gz files as plain Tk). Not sure if you mean running cpan . from the directory of the tarball (perladdons) on the unzipped directory, but in both cases it fails on authentication. So :

        C:\perladdons\Tk-804.036>cpan .

        Loading internal logger. Log::Log4perl recommended for better logging

        You are visiting the local directory

        '.'

        without lock, take care that concurrent processes do not do likewise.

        CPAN: LWP::UserAgent loaded ok (v6.52)

        Fetching with LWP:

        http://www.cpan.org/authors/01mailrc.txt.gz

        LWP failed with code407 messageProxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )

        And from the Tk directory:

        C:\perladdons\Tk-804.036>cpan .

        Loading internal logger. Log::Log4perl recommended for better logging

        You are visiting the local directory

        '.'

        without lock, take care that concurrent processes do not do likewise.

        CPAN: LWP::UserAgent loaded ok (v6.52)

        Fetching with LWP:

        http://www.cpan.org/authors/01mailrc.txt.gz

        LWP failed with code407 messageProxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )

        Proxy authentication needed!

      suppose I could get a Windows machine and install Strawberry and the modules needed. What do I need to grab and copy?
      • You'd need a Windows machine with internet access, where you can execute gmake and whatever other programs are needed.
      • Grab the "portable" edition. Put it on that Windows machine
      • start the "portableshell.bat"
      • cpanm from the portable edition install new modules in that portable edition's tree, so install Tk and whichever modules you need.
      • After that is done, copy (or zip, or net use) the whole folder tree onto those restricted machine(s) (after due virus scans, etc., of course).
      • When started from that "portableshell.bat", the installed modules would work (at least, they do in my environment)
      Due to your restrictions, Inline and similiar tools probably won't work, but with Tk I have a working script which is deployed in this manner.

      Update: corrected portableperl.bat to portableshell.bat - thanks syphilis

        My next version of berrybrew will have a feature where you can configure an instance of Perl with all the modules you require, then export the whole shebang as either a complete portable instance directory, or zip archive of the instance directory.

        Not that one can't just copy manually an instance, but having a button in the UI with a 'copy to' location pop up will make it much easier.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-29 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found