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

和自甴很熟 提交于 2019-12-19 16:22:25

问题


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.




回答4:


To add to Necros answer, Not all windows 10 builds even come with bash

https://www.windowscentral.com/how-install-bash-shell-command-line-windows-10



来源:https://stackoverflow.com/questions/22492715/bash-exe-warning-could-not-find-tmp-please-create

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!