1. 程式人生 > >關於warning:could not find /tmp. please create! 的錯誤解決

關於warning:could not find /tmp. please create! 的錯誤解決

Cygwin B20執行出現如下警告資訊:

bash.exe:warning:could not find /tmp. please create! 
bash-2.05b$ 

解決辦法如下:

到 cygwin 目錄下(如果用cygnus,可能是cygnus/cygwin-b20目錄)
mkdir /tmp 
chmod a+rwx /tmp 

再開啟Cygwin B20看看吧, 警告已經沒有了.