小编ban*_*nji的帖子

无法使用make |进行编译 致命错误设备上没有剩余空间

情况:刚刚安装了linux,试着学习编码c.使用sudo apt-get install build-essential设置.在我的代码中打开nano类型

#include <stdio.h>

int main(int argc, char *argv[])
{
        puts("Hello World.\n");
        return 0;
}
Run Code Online (Sandbox Code Playgroud)

打开另一个控制台选项卡,在make ex1中键入然后我的世界向下旋转到我最初的Linux发行版中尚未体验的最黑暗的深渊.

ragnar@ragnar:~/Documents/C$ make ex1
cc -Wall -g    ex1.c   -o ex1
ex1.c:7:1: fatal error: error closing /tmp/cc8d7Oap.s: No space left on device
 }
 ^
compilation terminated.
make: *** [ex1] Error 1


ragnar@ragnar:~/Documents/C$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb5       4.0G  3.8G     0 100% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            7.9G  8.0K  7.9G   1% /dev
tmpfs           1.6G  1.4M  1.6G …
Run Code Online (Sandbox Code Playgroud)

c linux compiler-errors makefile

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

c ×1

compiler-errors ×1

linux ×1

makefile ×1