Linux中遇到的一些问题及解决方法
发布时间
阅读量:
阅读量
fatal error: unisted.h: 没有那个文件或目录 compilation terminated.
已经进入文件所在目录,但是编译时却出现如图问题。其主要原因有以下两点:

- 文件名称后面有空格,调用不对
- 你的程序里面包含头文件库中没有或者名称本身就错了。需要检查头文件是否拼写错误
warning: incompatible implicit declaration of built-in function ‘exit’
不兼容问题,添加头文件:#include <stdlib.h>
安装文件时一直“等待安装”
卸载正在安装文件,并重启
sudo apt-get install -f
AI写代码c
运行
Ubuntu16.04:Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/
sudo pkill -KILL appstreamcli
wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb
sudo apt-get update
AI写代码c
运行
全部评论 (0)
还没有任何评论哟~
