Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does bash freeze in windows?

I am running the bash program in windows which was installed along with msys and mingw. I am trying to run ./configure. However whenever I do it the configuration freezes on "checking whether make sets $(MAKE)". Can you think of any reason why and how I can fix this issue.

I ran the command

sh -x ./configure

To see exactly where it freezes. The last run command is conftest.make which has the following code

SHELL = /bin/sh
all:
    @echo '@@@%%%=$(MAKE)=@@@%%%'

When I run this command by itself in command prompt make -f conftest.make the output is @@@%%%=make=@@@%%%. However if I start bash then run the same make command it freezes.

Why does it freeze here?

like image 568
Logan Murphy Avatar asked Apr 05 '14 23:04

Logan Murphy


People also ask

Why does bash not work on Windows?

This error occurs due to the “Windows Subsystem for Linux” not running on the C drive, which is Windows's system drive. To address this issue, ensure that your Linux system is installed in the C drive. Issue 2: The WSL optional component is not enabled. Please enable it and try again.

Is Bash good for Windows?

While Bash is great to manage text files in a scripting environment, everything is managed through APIs, not files. So, Bash is useful primarily to import Linux code to Windows machines and develop that code.

Why does command prompt get stuck?

The issue ended up being a new feature of the windows 10 console. Under the default config, whenever you click on a command window in windows 10, it immediately halts the application process when it attempts to write to the console. When this happens, the command window has gone into "selection" mode.


1 Answers

Are you using MinGW? If you have version 1.8* try to downgrade to 1.7. You can report this as a bug here: http://sourceforge.net/p/mingw/bugs/

like image 65
gj13 Avatar answered Oct 13 '22 00:10

gj13