标头文件丢失
我正在尝试编译源代码,我收到很多错误,表明我的系统中缺少头文件
checking sys/ioccom.h usability... no checking sys/ioccom.h presence... no checking for sys/ioccom.h... no checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking for net/pfvar.h... no checking for linux/wireless.h... no checking bluetooth/bluetooth.h usability... no checking bluetooth/bluetooth.h presence... no checking for bluetooth/bluetooth.h... no
所以,我开始认为我错过了一些重要的包裹
你能帮我列一下吗?
我有Ubuntu 12.04 LTS,2.6.28-17内核和gcc版本4.6.3,我正在尝试编译这个包http://nrg.cs.ucl.ac.uk/mptcp/mptcp_userland_0.1.tar.gz
提前致谢
我使用find / -iname 'wireless.h'
作为例子,发现大多数头文件都存在,但是编译器没有找到它们
所以,我将它们复制到/usr/include/
目录,它工作正常
缺少标题和图书馆
如果您尚未在计算机上安装lib,则以下是Ubuntu系统上的库:
-
ioccom.h
- lib:freebsd-glue
-
pfvar.h
- lib:linux-headers-generic
-
wireless.h和sockios.h
- lib:linux-libc-dev
-
bluetooth.h
- lib:libbluetooth-dev
要安装软件包:
sudo apt-get install freebsd-glue libbluetooth-dev linux-headers-generic linux-libc-dev
使用locate命令
例如,如果您想在系统上找到ioccom.h标头,请使用:
locate -b '\ioccom.h'
在您的数据库中搜索此文件名。 所以你得到路径等等,在你的机器上假装这些标题。
也许你还有额外的更新数据库之前:
sudo updatedb
这就是我搜索标题位置的方式。 它比使用find命令快得多。