Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Windows installation woes

by syphilis (Archbishop)
on Nov 03, 2021 at 10:32 UTC ( #11138368=note: print w/replies, xml ) Need Help??


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

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

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

    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.

        As you predicted cpanm . also failed because...

        This program is blocked by group policy. For more information, contact your system administrator. gmake: *** Makefile:524: blibdirs Error 1

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2023-06-01 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?