E: Unable to locate package autoheader

系统:ubuntu20.04

在编译util-linux库的时候,执行 ./autogen.sh  时报如下错误:

复制代码
ERROR: You must have autopoint installed to generate the util-linux build system.
       The autopoint command is part of the GNU gettext package.


ERROR: You must have autoconf installed to generate the util-linux build system.


ERROR: You must have autoheader installed to generate the util-linux build system.
       The autoheader command is part of the GNU autoconf package.


ERROR: You must have libtool-2 installed to generate the util-linux build system.


ERROR: You must have automake installed to generate the util-linux build system.
复制代码

执行 apt-get install autopoint 和 apt-get install autoconf 时都能正常安装,但是执行 apt-get install autoheader 时报如下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package autoheader

执行  apt-cache search autoheader* 搜索autoheader相关的库也没有搜到。

解决办法

在ubuntu14.04上搜索 apt-cache search autoheader ,结果如下:

# apt-cache search autoheader
autoconf2.13 - automatic configure script builder (obsolete version)

隐藏的很好!!!

在ubuntu20.04上执行 apt-get install autoconf2.13 ,安装完成以后再执行 ./autogen.sh  就不会报 ERROR: You must have autoheader installed to generate the util-linux build system. 的错误了。

posted @   闹闹爸爸  阅读(166)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
历史上的今天:
2020-11-16 从内核调用用户空间应用程序以及shell脚本
点击右上角即可分享
微信分享提示