13

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.

13

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.

| improve this answer | |
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/

| improve this answer | |
  • is it proxy compatible yet? – KillerSnail Mar 15 '16 at 8:10
  • not tried yet ! – velteyn Mar 17 '16 at 8:32
  • @KillerSnail, see my new answer, it finally happened! – youR.Fate Jul 5 '16 at 13:19
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
| improve this answer | |
  • 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 Jun 26 '18 at 12:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.