今天安装一个开源软件s3fs,结果在make的时候报错:
s3fs.cpp:3872:1: fatal error: error writing to /tmp/ccEmEL8S.s: No space left on device
compilation terminated.
make[1]: *** [s3fs.o] Error 1
于是查看/tmp目录,发现总共大小才1M,虽然利用率只有1%:
root@supercache:/tmp# df -hl
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 90G 70G 17G 82% /
udev 3.9G 4.0K 3.9G 1% /dev
tmpfs 1.6G 772K 1.6G 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 0 3.9G 0% /run/shm
/dev/sda5 46G 5.2G 39G 12% /home
/dev/sda6 19G 172M 18G 1% /opt
overflow 1.0M 4.0K 1020K 1% /tmp
/dev/sdb1 1.8T 244M 1.7T 1% /storage
具体是
df /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
overflow 1024 4 1020 1% /tmp
google了下,google 关键词 fatal error: error writing to No space left on device,大概是说可能是/tmp剩余空间太小,应该设置大点,原文是:
于是设置变量:
export TMPDIR=/some/other/dir
参考原文:
再重新编译,成功了!
虽然:
df /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
overflow 1024 4 1020 1% /tmp
转载于:https://www.cnblogs.com/hahawgp/p/3601942.html