完美解决编译缺少文件,apt-file search 命令去查找依赖。

1.序

在交叉编译过程中如果碰到少了什么头文件之类的报错,最好是使用 apt-file search 命令去查找依赖。

2.命令

比如: apt-file search /netlink/genl/genl.h

wpa_supplicant$ apt-file search /netlink/genl/genl.h
libnl-3-dev: /usr/include/libnl3/netlink/genl/genl.h
libnl-dev: /usr/include/netlink/genl/genl.h
wpa_supplicant$ apt-file search openssl/ssl.h
libssl-dev: /usr/include/openssl/ssl.h
eon@netview:~$ 
leon@netview:~$ apt-file search sys/prctl.h                
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_PAPER = "en_US.UTF-8",
        LC_ADDRESS = "en_US.UTF-8",
        LC_MONETARY = "en_US.UTF-8",
        LC_NUMERIC = "en_US.UTF-8",
        LC_TELEPHONE = "en_US.UTF-8",
        LC_IDENTIFICATION = "en_US.UTF-8",
        LC_MEASUREMENT = "en_US.UTF-8",
        LC_TIME = "en_US.UTF-8",
        LC_NAME = "en_US.UTF-8",
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
dietlibc-dev: /usr/include/diet/sys/prctl.h
emscripten: /usr/share/emscripten/system/include/libc/sys/prctl.h
gcc-arm-linux-androideabi: /usr/arm-linux-androideabi/include/sys/prctl.h
gcc-i686-linux-android: /usr/i686-linux-gnu/i686-linux-android/include/sys/prctl.h
libc6-dev: /usr/include/i386-linux-gnu/sys/prctl.h
libc6-dev-amd64: /usr/include/sys/prctl.h
libc6-dev-arm64-cross: /usr/aarch64-linux-gnu/include/sys/prctl.h
libc6-dev-armel-cross: /usr/arm-linux-gnueabi/include/sys/prctl.h
libc6-dev-armhf-cross: /usr/arm-linux-gnueabihf/include/sys/prctl.h
libc6-dev-powerpc-cross: /usr/powerpc-linux-gnu/include/sys/prctl.h
libc6-dev-ppc64el-cross: /usr/powerpc64le-linux-gnu/include/sys/prctl.h
libklibc-dev: /usr/lib/klibc/include/sys/prctl.h
musl-dev: /usr/include/i386-linux-musl/sys/prctl.h
leon@netview:~$ 
leon@netview:~$ 
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值