CentOS报错/bin/sh: autoconf: command not found

发布时间 2023-07-18 11:41:40作者: 海_纳百川

 

 


一、问题描述

CentOS 7 下执行 make configure 命令时报错:

/bin/sh: autoconf: command not found
 

二、解决方法

1.查看 autoconf、automake 是否已安装

rpm -qa|grep autoconf
rpm -qa|grep automake
 

2.查看 autoconf、automake 对应的包

yum whatprovides autoconf automake
 
[root@server-c00ef8c3-710d-4708-9cde-2c864e7c03e2 git-2.35.1]# yum whatprovides autoconf automake
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
autoconf-2.69-11.el7.noarch : A GNU tool for automatically configuring source code
Repo        : base
automake-1.13.4-3.el7.noarch : A GNU tool for automatically creating Makefiles
Repo        : base
 

 

3.安装

yum -y install autoconf-2.69-11.el7.noarch
yum -y install automake-1.13.4-3.el7.noarch