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. 的错误了。
本文来自博客园,作者:闹闹爸爸,转载请注明原文链接:https://www.cnblogs.com/wanglouxiaozi/p/17835622.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
2020-11-16 从内核调用用户空间应用程序以及shell脚本