Questions tagged [mingw]
MinGW, a contraction of "Minimalist GNU for Windows", is a minimalist development environment for native Microsoft Windows applications.
159
questions
102
votes
2
answers
161k
views
What is Git Bash for Windows anyway?
I have happily been using Git and Git Bash from https://git-scm.com/. There is a page with more information here: https://git-for-windows.github.io/.
Yesterday I ran into a problem with rsync, and I ...
47
votes
7
answers
58k
views
MinGW Bash profile
I use MinGW on Windows 7. I have a .bashrc with some aliases in it. The file is in my home folder which is where MinGW starts me in, so it also believes that the folder is my home folder. It does not ...
33
votes
7
answers
20k
views
make: Interrupt/Exception caught
I'm using Make from the MinGW distribution. It has always worked, but recently I've gotten the following error:
> make clean
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x0040b0ac)
...
28
votes
5
answers
33k
views
bash - remove all directories (and contents) but not files in pwd
I'd like to remove all directories from the pwd but leave the files in the pwd alone. If the content of my pwd is:
mydir1
mydir2
myfile1
myfile2
then I'd like to be left with just
myfile1
myfile2
...
18
votes
4
answers
31k
views
MinGW installer not working with proxy
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 ...
14
votes
3
answers
37k
views
MINGW64 bash: wget: command not found
I am using git with MINGW64(install by git) on windows.
MINGW64 is great, but lack of some command which rarely use on windows.
Today, I just have a whim to figure out how to use wget in it.
I found ...
13
votes
7
answers
24k
views
Start MSYS in current folder
I have MinGW/MSYS on Windows, and can't figure how to start MSYS shell in folder I'm working in.
For example, in Windows console I'm working in folder c:\temp and if I call MSYS (msys.bat) it opens ...
12
votes
3
answers
13k
views
accessing the mapped network drives using mingw shell
How to access the mapped network drives from the mingw shell? When I try
cd y: or cd /y or y:
All I get is No such file or directory or sh.exe y:: command not found.
I am able to access the same ...
11
votes
3
answers
15k
views
How can I change my MinGW/MSYS + mintty home directory?
I use mintty as my console emulator for MinGW/MSYS. Recently (I'm not certain exactly when), the home directory used by this combination changed from my Windows user folder (/c/Users/<me>/) to /...
11
votes
3
answers
46k
views
Install GCC in Git for Windows bash environment
I have Git for Windows installed on a Windows 7 machine (no, sadly I can't switch to W10 on this particular machine). This comes with a bash environment that uses MinGW-64 but only includes some ...
11
votes
2
answers
5k
views
Unable to rsync to another volume with Git Bash
I use git bash on a windows machine: version 2.7.2 (32-bit version) of Git for Windows built on 2016-02-23 available from https://git-scm.com.
Within bash I can copy a directory from /c/ to /e/ (a USB ...
10
votes
2
answers
15k
views
I can't see MSYS home directory under Windows 7's file explorer
I'm using MSYS (MinGW UNIX environment) to get a working UNIX-like environment on my Windows 7 workstation. When I start the MinGW shell, I can see that my home directory is /home/oded.a, and running ...
10
votes
2
answers
6k
views
MSYS2 and "At least one valid and enabled repository required for this action to succeed."
I have separate MSYS2 32-bit and 64-bit installed on a Windows 8.1 test machine. MSYS2 was acquired from the MinGW-64 download page. Each installation has developer tools installed like GCC, Git, GDB, ...
10
votes
2
answers
10k
views
Editor for 'git bash' on Windows (editor for mingw/msys+mintty)?
I am using 'git bash' for Windows (from 'git for Windows') which in turn consists of mingw+msys and a mintty.
This mingw installation contains a 'vi' editor which works in the mintty. Good.
Question:...
9
votes
1
answer
11k
views
How do I open the current directory in mingw's msys in file explorer?
Assume I'm in:
$ pwd
/home/foo
Now I want to open up this /home/foo in Windows 10's file explorer. How do I do this?
9
votes
5
answers
11k
views
How do I disown/detach a process from the Git Bash terminal that come with Git's Windows installer?
I would like to run commands from the terminal (mostly Python servers) and essentially daemonize them. I am running the MinGW terminal "Git Bash" that comes with the Windows installer for Git.
...
9
votes
2
answers
6k
views
Is there a shell that has tabs that you can use with mingw?
I don't mean tabbed completion.
I mean tabs like what firefox, chrome etc have, that you can switch between.
8
votes
2
answers
2k
views
Rename tab from MinGW-console using ConEmu
I'm using the cmder (ConEmu) with Git Bash-tabs (MinGW) and I want to rename the current tab with a console command. Within a cmd-Tab I can use cmd /c RenameTab "myTabName" but I a need a similar ...
8
votes
1
answer
7k
views
How can I use mintty as the terminal emulator for MinGW/MSYS?
The default "terminal emulator" in Windows leaves a lot to be desired. I see mintty recommended as a lightweight alternative with specific support for MinGW/MSYS, but not much information on how to ...
7
votes
2
answers
5k
views
How can I remove or deactivate the Windows system32/find.exe?
I am trying to make my Windows System as compatible with existing Makefiles as possible. One great step that is missing is replacing the windows "find" (which is the same as grep) with the GNU find (...
7
votes
2
answers
8k
views
Can Mingw32/Msys run dos/cmd.exe executables without screwing up the arguments?
I'm trying to run growlnotify.exe from a Windows bash prompt. Recompiling it for mingw32 isn't a good option for me.
growlnotify works if I use it from the cmd prompt, but it fails (mostly) from the ...
7
votes
5
answers
21k
views
How to install clang-format on MinGW (Windows)?
I tried searching with pacman -Ss for clang-format, git-clang-format, etc, but I'm not having any luck.
However, I have seen some references to it on some other websites, implying it may exist (or ...
7
votes
3
answers
13k
views
git bash icon on windows 7
The shortcut icon to Git Bash is correct. However when I run and open the shell, the shell window icon is that of exe files.
This is disturbing while alt-tabbing.
It is working correctly on windows ...
7
votes
1
answer
5k
views
What is the difference between the different GCC on Cygwin, and which one to install?
I need to install GCC for Cywin, but I see that there are five different "gcc-g++" packages:
cygwin32-gcc-g++
gcc-g++
mingw-gcc-g++
mingw64-i686-gcc-g++
mingw64-x86_64-gcc-g++
What is the difference ...
6
votes
2
answers
10k
views
NetBeans + MinGW + C - file not found
I have installed NetBeans 7.3 (twice this day), and installed MinGW (many times today).
My OS Win 7 64
I tried to install MinGW with MSYS, tried MinGW with MSYS and MinGW DT, MinGW without MSYS, ...
6
votes
3
answers
2k
views
rm on MINGW32, cannot unlink not owner
Similar to rm on cygwin, cannot unlink not owner, but for MINGW32. I tried chmod u+w path but this did not help.
user@computer /d
$ rm dir -d
rm: cannot unlink `dir': Not owner
user@computer /d
$ ...
5
votes
2
answers
6k
views
Installing sha1sum on git-bash (MinGW)
I've been using git-bash on Windows 7 a lot. I gather it is a wrapper of MinGW. It has md5sum but not sha1sum. I'd like to install sha1sum, but I can't figure out how.
When I try mingw-get, it says "...
5
votes
1
answer
1k
views
Can't make nodejs mingw32: pkg-config can't find gnutils
I'm trying to compile nodejs using MSYS, mingw32 on Windows 7-64
Valentin Golev@VALYASNOTEBOOK /home/Valentin_Golev/nodejs
$ ./configure
Checking for program CL : ok C:\Program ...
5
votes
0
answers
1k
views
Difference between msys2.exe and mingw64.exe in MSYS installation
I have an MSYS installation on my Windows machine.
Inside the root folder, there are two executables:
msys2.exe
mingw64.exe
(There is also a mingw32.exe but that is just the 32-bit version of ...
5
votes
0
answers
872
views
msys-1.0's dd on windows
msys-1.0 (MinGW) has an implementation of dd usable on windows (dd.exe) but windows does not have file representations of drives to use with dd. Or does it? Afaik dd operates on files.
Is there a way ...
4
votes
2
answers
26k
views
How do we install new libraries for c++ mingw?
I wanted to learn about 'ncurses' library.But I am a beginner and couldn't understand how to get the library setup and usable.Do you just copy the library files and start using it or is there ...
4
votes
1
answer
2k
views
Device names in MSYS2 dd
Which is the equivalent of:
dd if=/dev/sda ...
dd if=/dev/sda1 ...
for dd.exe in MSYS2 in coreutils
Does Chrysocome syntax apply?
4
votes
2
answers
5k
views
git log behaves like less
git log -{n}, when -n is sufficiently small, doesn't open in less it simply prints it to the screen. That's desirable. git log -1 should not take up the full screen.
Unfortunately, in MINGW's ...
4
votes
2
answers
4k
views
QEMU User mode emulation
I am a student and trying to compile QEMU on MINGW32 in user emulation mode.
I read in certain document that, the following OS are supported in user space emulation:
1. Linux (referred as qemu-...
4
votes
1
answer
2k
views
How can I install GnuTLS in MinGW/MSYS?
I've installed MinGW and MSYS on my Windows XP machine and now I want to compile an application which requires the GnuTLS libraries.
How do I install that package?
I tried mingw-get install mingw-...
4
votes
1
answer
14k
views
How can I properly configure the g++ include path with mingw64?
I have installed msys2/mingw64 because I need the g++ compiler. Now, I want to compile some c++ oce which requires openblas. I have installed the package using pacman -S mingw-w64-x86_64-openblas. ...
4
votes
1
answer
2k
views
I/O redirection using cygwin and mingw
I have written a program in C and have compiled it using MinGW. When I try to run that program in Cygwin, it seems to behave normally (i.e. prints correct output etc.)
However, I'm trying to pipe ...
4
votes
1
answer
4k
views
How do I downgrade MinGW GCC to 4.8,4?
I'm starting a C++ course in college, and they asked for all assignments to be compilable on GCC 4.8.4.
I decided to go with MinGW on Windows 10 via Eclipse, but on the "Versions" tab of any given ...
3
votes
2
answers
3k
views
How do I compile gVim.exe as a 64 bit executable? (Windows 8)
Very straight-forward question. I have downloaded mingw32 and the Vim source code and I have edited Make_mind.mak to use the correct Python version and location. I'm located in the src directory and I ...
3
votes
3
answers
2k
views
How do I create a soft link to all executables in a different directory?
I am trying to create soft links to mingw's binaries in cygwin.
So far I have: find /cygdrive/c/MinGW/bin/ -name "*.exe" -exec ln -s {} basename {} \;
but I get:
ln: target `/cygdrive/c/MinGW/bin/...
3
votes
1
answer
1k
views
How can I open a file with its default application from the MinGW Bash prompt?
In the default windows command prompt you can open a file from the command prompt by entering the name. See Open file with default application from command line.
Is there an equivalent in the MinGW ...
3
votes
1
answer
18k
views
How to use echo in shell command from Makefile?
I have a GNU makefile. It runs fine on Linux, Solaris and OS X. However, under Cygwin-32, Cygwin-64 and MinGW, it produces:
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: ...
3
votes
4
answers
8k
views
MinGW MSYS ssh error: Could not create directory '/home/<username>/.ssh'
I have just installed a fresh MinGW installation on Windows 7 64bit using the Graphical User Interface Installer (the recommended approach) following the instructions given here and keeping the ...
3
votes
2
answers
3k
views
Compile in msys2 mingw64 with -m32 option
Inside a msys2 mingw64 shell, I would like to compile a software with the -m32 option in order to run in 32bit mode.
I have installed mingw-w64-x86_64-toolchain
But when I compile with -m32, I have ...
3
votes
2
answers
15k
views
MinGW gcc missing zlib1.dll
Whenever I try to compile a C file using MinGW's gcc, it gives the error that zlib.dll is missing. Is there any reliable way to get zlib.dll or to fix this error?
3
votes
2
answers
2k
views
Install haskell in existing msys2
Is there any simple way to install haskell / cabal / stack in an existing msys2 installation? I can't find one.
Note: Apparently it is possible to install both at the same time using MinGHC, see here....
3
votes
1
answer
3k
views
Start Git Bash from users directory
I am running the latest version of git on Windows. When I start Git Bash (Running MINGW32) from my start menu it starts git from my users home directory. When I pin the window to the task bar and then ...
3
votes
1
answer
2k
views
List directories first with MinGW ls
I have recently started using MinGW instead of Cygwin on my Windows 7 machine, and I am having a little issue with MinGW's ls. In Cygwin, ls has a --group-directories-first option that, obviously, ...
3
votes
0
answers
3k
views
Installing extra packages into a git-for-Windows MinGW installation
For most Windows computers I use, I install git for Windows (from https://git-scm.com/downloads) to get a basic set of useful command line tools that I am familiar with from the Linux world (apart ...
3
votes
0
answers
451
views
How to get Column (the gnu/linux utility) for Windows (MINGW)?
MINGW does not come with the "column" utility. I want to be able to do something like:
cat file.txt | column -t
Is there a way I can install just that utility for Windows? Preferably a single file, ...