Sta*_*mer 6 compiling libraries pkg-config
我正在尝试从源代码构建 btrfs-progs,但是当我运行 ./configure 时出现错误:
checking for BLKID... no
configure: error: Package requirements (blkid) were not met:
No package 'blkid' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables BLKID_CFLAGS
and BLKID_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Run Code Online (Sandbox Code Playgroud)
blkid安装在/sbin所以,大概,它的所有库都在默认位置。
我需要做什么来告诉 pkg-config 在哪里blkid或我实际上是否缺少一个包?
仅供参考:我正在运行带有 4.1.0 内核的 Debian 8(sid/unstable),该内核是大约一周前从 github.com/torvalds/linux.git 来源构建的(提交:g6aaf0da)。
如果缺少软件包,您可以使用apt-cache:
% apt-cache search blkid
libblkid-dev - block device id library - headers and static libraries
libblkid1 - block device id library
Run Code Online (Sandbox Code Playgroud)
甚至:
% apt-cache search blkid | grep '\-dev'
libblkid-dev - block device id library - headers and static libraries
Run Code Online (Sandbox Code Playgroud)
我们知道我们需要开发库来编译一些东西,因此做一个......
apt-get install libblkid-dev
Run Code Online (Sandbox Code Playgroud)
...作为root用户。
| 归档时间: |
|
| 查看次数: |
7124 次 |
| 最近记录: |