MinGW installer not working with proxy

13

3

Situation
I want to install minGW and msys on a work pc, but I'm behind a proxy. The proxy settings are configured to auto detect in both internet explorer and firefox. The proxy is a http proxy on port 80 that requires authentification.
I also have the url of the proxy and a .pac configuration script.
The system is windows 7 64 bit.

Problem
MinGW setup does not recognize the proxy settings and therefore cannot download any packages for installation.

What I've tried so far
I've tried changing the proxy settings in the internet explorer's internet options from auto detect to manual setup. I've also tried running the installer through proxifier. Both didn't work.

youR.Fate

Posted 2014-02-07T09:56:32.220

Reputation: 374

Answers

12

New MSYS2 finally has proxy capabilites

The new MSYS2 now uses pacman, the package manager from the arch linux project, to manage both msys and mingw packages. Pacman is capable of using authenticated http(s) proxies, see this article in the Arch Linux wiki for more information.
I added the following lines to \msys64\etc\profile:

# proxy settings
export HTTP_PROXY="username:password@proxy.server.address:port"
export HTTPS_PROXY=$HTTP_PROXY
export http_proxy=$HTTP_PROXY
export https_proxy=$HTTP_PROXY

and I can now finally install and update minGW and msys packages using pacman through the authenticated http(s) proxy here.

youR.Fate

Posted 2014-02-07T09:56:32.220

Reputation: 374

2

The command line to install mingw64-w64 using pacman can be found at http://stackoverflow.com/questions/30069830/how-to-install-mingw-w64-and-msys2

– francis – 2016-08-19T11:24:01.130

Those don't work for me (I still get 407 HTTP errors). Is there an alternative syntax? – Paulo Carvalho – 2018-11-07T13:12:07.820

0

One option that worked for me is to use TDM-GCC

  • Download the bundle installer that is correct for your system
  • Manually download all the individual packages and save them to

    C:\TDM-GCC-64\__installer\downloaded
    
  • Run the TDM-GCC bundle installer and it should work

Alexander McFarlane

Posted 2014-02-07T09:56:32.220

Reputation: 109

That is only a compiler suite though, I use mingw/msys as a way to have common *nix tools in my windows command line. – youR.Fate – 2018-06-26T12:41:34.717

0

I'm sorry but that installer on surceforge is not proxy compatible right now (12/02/2014).

EDIT:

As a good workaround you can install codeblocks for windows: it comes with a bundled working MinGW pack with it or you can use this

http://sourceforge.net/projects/mingwbundle/

velteyn

Posted 2014-02-07T09:56:32.220

Reputation: 1

is it proxy compatible yet? – KillerSnail – 2016-03-15T08:10:32.280

not tried yet ! – velteyn – 2016-03-17T08:32:44.030

@KillerSnail, see my new answer, it finally happened! – youR.Fate – 2016-07-05T13:19:20.080