如何安装autoconf


19

我需要安装Tesseract,需要安装autoconf automake libtool,但是出现以下错误:

sahu@sahu-desktop:/$ sudo apt-get install autoconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package autoconf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'autoconf' has no installation candidate

所以请帮帮我。


您的Ubuntu版本是什么?
thefourtheye

Answers:


39

确保已启用所有必需的存储库。在站点上执行“ 如何启用存储库 ”搜索。启用存储库后,打开终端并使用以下命令安装autoconf

sudo apt-get update
sudo apt-get install autoconf

您的错误消息提示您已禁用存储库。


3

Autoconf是GPLv2许可的宏程序包,可产生外壳程序脚本“ configure”以生成项目的Makefile和config标头。Autoconf生成的配置脚本是独立的,因此项目的用户不需要Autoconf,M4或perl即可运行configure。1个

要下载最新版本,请单击此处,有关安装的说明,请单击此处

您需要解压缩Autoconf,对其进行构建并安装Autoconf(必须是root用户)

另一种方法是从Ubuntu软件中心进行安装,

另外,要下载并安装,请单击下面的图像。

通过软件中心安装

您也可以遵循Anwar的回答。

1资料来源: Autoconf


1
autoconf不是在存储库中吗?
托马斯·沃德
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.