Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: Windows installation woes

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


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

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!

Replies are listed 'Best First'.
Re^5: Windows installation woes
by marto (Cardinal) on Nov 03, 2021 at 12:40 UTC

    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

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

        Presumably, you'll get the same message if you execute gmake -v.
        My take on this is that when you (or cpan or cpanm) execute gmake.exe, it's this gmake.exe that has been doctored by the group Police that gets found.
        But what happens if you set things up so that the correctly functioning gmake.exe that Strawberry provides gets found ?
        You could find out by running something like C:\StrawberryPerl\c\bin\gmake -v, though I don't know if I've guessed the location of your Strawberry Perl installation correctly.

        The .msi edition of Strawberry Perl that you already have *appends* its paths to the end of the PATH environment variable - which means that if there's already another gmake.exe in the PATH, then it's this other gmake.exe that gets loaded.
        The "portable" editions *prepend* their paths to the beginning of the PATH environment variable - which means that if there's already another gmake.exe in the PATH, then it will not be used.
        That's why I suggested using the "portable" edition, though you could also just rearrange the PATH yourself so that your existing Strawberry installation comes first.
        (You can have both an msi and a "portable" edition installed - it doesn't have to be a case of just one or the other. In fact you can have as many portable editions installed as you like. I've got at least 15 of them.)

        Anyway ... that's my take on it. It may not be correct as I don't really know what sort of weaponry your group Police are prepared to deploy. (Is my life in danger ?? ;-)

        And marto's suggestion of trying to get your Police to soften their stance makes good practical sense.
        Good luck.

        Cheers,
        Rob

        You're working in a restrictive environment, engage with the sysadmins to get what you need, or ask for a suitable system upon which you can build the tools you need for distribution on other systems.

        microsoft products being what they are, TIMTOWTHI (There Is More Than One Way To Hack It) applies. I am sure you will find a way to bypass it. My favourite from this extensive list is to run it via rundll32.exe gmake.dll,main. (most likely you don't have gmake.dll but you can create it in another machine). Can windows be that dumb? Computer says maybe (<<-youtube link)

        also running it via cmd.exe may be another loophole: cmd /K "C:\SomeFolder\MyApp.exe"

        bw, bliako

        p.s. TIMTOWTHU (There Is More Than One Way To Hack Undoubtedly) and that's written on stone.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-03-28 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found