fatal error: unisted.h: 沒有那個文件或目錄 compilation terminated.
已經進入文件所在目錄,但是編譯時卻出現如圖問題。其主要原因有以下兩點:
- 文件名稱後面有空格,調用不對
- 你的程序裏面包含頭文件庫中沒有或者名稱本身就錯了。需要檢查頭文件是否拼寫錯誤
warning: incompatible implicit declaration of built-in function ‘exit’
不兼容問題,添加頭文件:#include <stdlib.h>
安裝文件時一直“等待安裝”
卸載正在安裝文件,並重啓
sudo apt-get install -f
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