尝试安装时出错 mod_jk - Centos 8

Error when trying to install mod_jk - Centos 8

我是 Digitalocean 用户,我正在尝试将 mi infraestructre 从 Centos 7 迁移到 Centos 8 它意味着移动数据库 (mysql),设置 Web 服务器和 Java。 其中一个步骤是安装 Apache 和 Tomcat 使用 mod_jk。 我将描述的所有步骤在 Centos 7 中完全成功但在 Centos 8 中失败 我安装 Java 的方式是通过我从 oracle 本身下载的 RPM 包。

# java -version
java version "14.0.1" 2020-04-14
Java(TM) SE Runtime Environment (build 14.0.1+7)
Java HotSpot(TM) 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)

这些是我遵循的所有步骤。

# dnf install httpd
#cd /tmp
# wget https://apache.zero.com.ar/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.48-src.tar.gz
# cd tomcat-connectors-1.2.48-src/native
# dnf install httpd-devel
# dnf install make
# dnf install libtool
# which apxs
/usr/bin/apxs

在此目录中有文件 "BUILDING.txt",其中包含我遵循的安装说明。 看起来像这样。

# ./configure --with-apxs=/usr/bin/apxs
# make

这里似乎有问题。 在 Centos 中找不到某些 "redhat" 目录。

Error when executing 'Make' screenshot

下一个是

# make install

但在 Centos 8 中失败

有谁知道如何解决这个问题? 提前致谢。

您需要安装redhat-rpm-config。安装 redhat-rpm-config 并测试。

yum install redhat-rpm-config