I don't know where exactly you downloaded this installer, but know that there are quite some old downloads of older GCC+MinGW-w64 versions.
You can get a recent standalone version for Windows without installer from https://winlibs.com/.
Or more advanced command line users may choose to install MSYS2 shell and install MinGW-w64 via its package manager (pacman).
I have the same error message:
Cannot download
repository.txt
and I have 2 alternative solutions to install MinGW-w64 in windows :
SOLUTION 1:
Install chocolatey. Then type the following command line:
c:> choco install mingw
SOLUTION 2:
Download MinGW build ("native Windows" build). Then I was able to make GFortran work on JetBrain CLion.
Steps to install choco+ mingw:
steps to install choco-
- run Powershell as administrator
- Run
Get-ExecutionPolicy - If prints
RestrictedrunSet-ExecutionPolicy Bypass -Scope Processand TypeYthen pressEnter - Run
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
steps to install mingw-
5. Run choco install mingw command
6. system will ask to run the script. Type A then press Enter
This will automatically add path in the system.
for safety- (optional) turning the execution policy to Restricted
7. Run Set-ExecutionPolicy Restricted -Scope Process and Type Y then press Enter
8. Run Get-ExecutionPolicy and see it will print Restricted.
You're all Done!