Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Windows installation woes

by chafelix (Novice)
on Nov 03, 2021 at 06:59 UTC ( [id://11138364]=note: print w/replies, xml ) Need Help??


in reply to Re: Windows installation woes
in thread Windows installation woes

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?

Replies are listed 'Best First'.
Re^3: Windows installation woes
by syphilis (Archbishop) on Nov 03, 2021 at 10:32 UTC
    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!

        cpan . doesn't do what you think it does. You likely want to do cpanm . from within the directory of an untar'd distro. Regardless, you're going to have to configure these tools to deal with your proxy should you wish them to do dependency resolution. CPAN Behind Firewalls, set the appropriate environment variables and these tools will work.

Re^3: Windows installation woes
by soonix (Canon) on Nov 03, 2021 at 14:17 UTC
    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://11138364]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 07:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found