bash.exe: warning: could not find /tmp, please cre

2019-06-16 20:56发布

问题:

why my sublime text giving me warning: bash.exe: warning: could not find /tmp, please create

although it is building and running the code correctly.

Please help me just got irritated by seeing this warning.

I have searched the whole web but i couldn't find any solution

回答1:

This error message is misleading. At least for me it did not solve the problem after creating /tmp directory. Problem was solved after I killed sh.exe.



回答2:

To piggyback on Kode Charlie's answer:

Open Start Menu

Type "cmd"

Press Enter

type "bash"

Press Enter

type "mkdir /tmp"

Press Enter

Close the command prompt window

Solved the error for me in Sublime Text 2.



回答3:

Try opening a bash-shell, and then:

$ mkdir /tmp

See if that makes the warning go away.