Please UPDATE your POWERSHELL install scripts

I believe the PowerShell scripts are no longer compatible with newer versions of PowerShell. I note that other people are having similar issues. I came here to download a specific version of Python and that’s all. I expected to download an executable or MSI installation file. Why is it so complicated? Access to the files mentioned in the script is blocked, so there is no way to go around the script errors.

1 Like

Hey @thomassisson,

Thanks for writing and sorry for the issues you’re experiencing! I’ll share your note about compatibility with the dev team. What version of PowerShell are you running.

On the MSI or EXE front, we’ve stopped distributing all-in-one builds and installers because of the difficulty in updating them and the security issues that this leads to (among other reasons).

Cheers
–zak

Hi @thomassisson

Could you clarify what type of incompatibility issue you’re running into? We’ve so far not ran into any issues with our powershell script being incompatible with newer powershell versions, although compatibility with older versions is definitely an unfortunate issue we’re having to deal with.

Could you share what output the install one liner is giving you, as well as your powershell version?

Thank you

[ExtUtils-MakeMaker (b0125595-4567-5579-8b21-a52ba97ec8e3)] 2021-12-06T18:25:11.057698: Running [gmake]…
[ExtUtils-MakeMaker (b0125595-4567-5579-8b21-a52ba97ec8e3)] 2021-12-06T18:25:11.067691: gmake: *** No rule to make target ‘C:\builds\deps\b0125595-4567-5579-8b21-a52ba97ec8e3\installdir\libConfig.pm’, needed by ‘Makefile’. Stop.
[ExtUtils-MakeMaker (b0125595-4567-5579-8b21-a52ba97ec8e3)] 2021-12-06T18:25:11.070715:
[ExtUtils-MakeMaker (b0125595-4567-5579-8b21-a52ba97ec8e3)] 2021-12-06T18:25:11.072705: gmake failed: ‘gmake’ exited with value 2 at C:\builds\builder-deps\b0125595-4567-5579-8b21-a52ba97ec8e3\installdir\lib/ActiveState/ModuleBuilder.pm line 446.
[ExtUtils-MakeMaker (b0125595-4567-5579-8b21-a52ba97ec8e3)] 2021-12-06T18:25:11.081694: Build complete.

Hi,
I’m using powershell version 10.0.19041.546 and I’m getting the following error when trying to download ActivePerl 5.28, or similar errors when trying to download Perl 5.32 :

powershell -Command "& $([scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://platform.activestate.com/dl/cli/pdli01/install.ps1'))) -activate-default tomhack/ActivePerl-5.28"
At line:1 char:1
+ & # Copyright 2019-2021 ActiveState Software Inc. All rights reserved ...
+ ~
Missing expression after '&' in pipeline element.
At line:1 char:71
+ ...  # Copyright 2019-2021 ActiveState Software Inc. All rights reserved.
+                                                                          ~
Unexpected token '
' in expression or statement.
At line:18 char:41
+ $script:SESSION_TOKEN_VERIFY = -join ({, TOKEN, })
+                                         ~
Missing expression after unary operator ','.
At line:18 char:42
+ $script:SESSION_TOKEN_VERIFY = -join ({, TOKEN, })
+                                          ~~~~~
Unexpected token 'TOKEN' in expression or statement.
At line:18 char:47
+ $script:SESSION_TOKEN_VERIFY = -join ({, TOKEN, })
+                                               ~
Missing argument in parameter list.
At line:20 char:31
+ $script:SESSION_TOKEN_VALUE = "
+                               ~
The string is missing the terminator: ".
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingExpression

I think you gave us your Windows version. Can you please verify your powershell version?

Unfortunately PowerShell isn’t very good when it comes to forward compatibility, but it’s also the only language we can instrument via one liner.

@alitopan I’m not sure what your post is meant to convey, did you mean to post this somewhere else?

I have also encountered the same error. Seems the PowerShell script is broken. I am using 5.1.19041.1320. Can you help?

Having powershell problems as well. Never had this kind of difficulty downloading software before.

I am trying to download Python 2.7 to run WebKit build.

My Powershell version is:

Version

5.1.19041.1320

This is your powershell script:

powershell -Command “& $([scriptblock]::Create((New-Object Net.WebClient).DownloadString(‘https://platform.activestate.com/dl/cli/pdli01/install.ps1’))) -activate-default shanorob/ActivePython-2.7”

This is the error I got:

Exception calling “DownloadString” with “1” argument(s): “The remote name could not be resolved:
platform.activestate.com’”
At line:1 char:26

  • … ommand "& $([scriptblock]::Create((New-Object Net.WebClient).Download …
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:slight_smile: , MethodInvocationException
    • FullyQualifiedErrorId : WebException

& : The term ‘-activate-default’ is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:4

  • & -activate-default shanorob/ActivePython-2.7
+ CategoryInfo          : ObjectNotFound: (-activate-default:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Is a DNS error. You’re probably behind a proxy server or a firewall.
We have a troubleshooting section on Networking issues, found here: