Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powershell installation fails on Windows ARM, but succeeds via git bash #108

Open
kim-em opened this issue Sep 20, 2023 · 2 comments
Open

Comments

@kim-em
Copy link
Contributor

kim-em commented Sep 20, 2023

On Windows 11, running inside Parallels on Apple Silicon (perhaps an unusual combination):

Running

curl -O --location https://raw.githubusercontent.com/leanprover/elan/master/elan-init.ps1
powershell -ExecutionPolicy Bypass -f elan-init.ps1
del elan-init.ps1

in a Windows cmd terminal results in:

C:\Users\kim>curl -O --location https://raw.githubusercontent.com/leanprover/elan/master/elan-init.ps1                    
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current  
                               Dload  Upload   Total   Spent    Left  Speed                                                                                                   
100  2522  100  2522    0     0   5745      0 --:--:-- --:--:-- --:--:--  5771

C:\Users\kim>powershell -ExecutionPolicy Bypass -f elan-init.ps1
### Elan install only supports 64-bit Windows with AMD64 architecture
1

C:\Users\kim>del elan-init.ps1

However in a git bash terminal

curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh

gives me a working lean/lake with no issues.

@Kha
Copy link
Member

Kha commented Sep 20, 2023

If we can just delete this, great! I don't think we need to worry about 32-bit systems anymore, but if we want to be sure...

@kim-em
Copy link
Contributor Author

kim-em commented Sep 21, 2023

At least on my window-inside-parallels-on-M2 system, deleting those lines works great, and the standard install instructions succeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants