How can I install MinGW-w64 and MSYS2?

Unfortunately, the MinGW-w64 installer you used sometimes has this issue. I myself am not sure about why this happens (I think it has something to do with Sourceforge URL redirection or whatever that the installer currently can’t handle properly enough). Anyways, if you’re already planning on using MSYS2, there’s no need for that installer. Download … Read more

ValueError: Unknown MS Compiler version 1900

I made the following changes and it worked for me with the following configurations. OS : Win 7 Prof. SP1 64 bit CPython 3.6 , 64 Bit Mingw 64 (x86_64-7.1.0-posix-seh-rt_v5-rev0) Cython 0.25.2 I did the following Add mingw in the PATH variable (C:\mingw-w64\x86_64-7.1.0-posix-seh-rt_v5-rev0\mingw64\bin for me) Test by opening command line and command gcc works ( … Read more

How to cd into a directory with space in the name?

$ cd “$DOCS” You need to quote “$DOCS” to prevent spaces from being parsed as word separators. More often than not, variable references should be quoted. Note that $HOME would have the same problem. The issue is coming from when the shell evaluates variable references; it’s nothing to do with what variables you use or … Read more

Git Extensions: Win32 error 487: Couldn’t reserve space for cygwin’s heap, Win32 error 0

I had the same problem. I found solution here http://jakob.engbloms.se/archives/1403 c:\msysgit\bin>rebase.exe -b 0x50000000 msys-1.0.dll For me solution was slightly different. It was C:\Program Files (x86)\Git\bin>rebase.exe -b 0x50000000 msys-1.0.dll Before you rebase dlls, you should make sure it is not in use: tasklist /m msys-1.0.dll And make a backup: copy msys-1.0.dll msys-1.0.dll.bak If the rebase command … Read more

Git on Windows: How do you set up a mergetool?

To follow-up on Charles Bailey’s answer, here’s my git setup that’s using p4merge (free cross-platform 3way merge tool); tested on msys Git (Windows) install: git config –global merge.tool p4merge git config –global mergetool.p4merge.cmd ‘p4merge.exe \”$BASE\” \”$LOCAL\” \”$REMOTE\” \”$MERGED\”‘ or, from a windows cmd.exe shell, the second line becomes : git config –global mergetool.p4merge.cmd “p4merge.exe \”$BASE\” … Read more