![如何安装 autoconf](https://linux22.com/image/1080182/%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%85%20autoconf.png)
我需要安装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
所以请帮助我。
答案1
确保已启用所有必要的存储库。执行“如何启用存储库' 在网站上搜索。启用存储库后,打开终端并使用这些命令安装 autoconf
sudo apt-get update
sudo apt-get install autoconf
您的错误消息表明您已禁用存储库。
答案2
答案3
我在 Ubuntu 20.04 上。autoconf --version
显示autoconf (GNU Autoconf) 2.69
,但我至少需要 2.71。操作方法如下:
如何autoconf
从源代码构建最新版本
最新内容请见此处: https://www.gnu.org/software/autoconf/--> “下载 Autoconf” 部分,指向此处:https://ftp.gnu.org/gnu/autoconf/. 在下面的命令中使用上面链接中的最新版本的链接:
# check version
autoconf --version
wget https://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.xz
tar -xf autoconf-2.71.tar.xz
cd autoconf-2.71/
./configure
time make
sudo make install
. ~/.profile
autoconf --version # you should see your new version now!