我的客户端已授予我访问 RedHat 服务器的权限,该服务器需要安装 Apache,但它无法直接访问互联网。因此,我无法使用“yum”命令安装软件包。当我运行命令时
yum install httpd
它给了我这个错误:
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
No package httpd available.
Error: Nothing to do
然后我手动下载了 httpd 包并将其上传到服务器并运行以下命令:
./configure --enable-so --enable-ssl --with-mpm=prefork --with-included-apr
输出结果如下:
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
configure:
configure: Configuring Apache Portable Runtime library...
configure:
configuring package in srclib/apr now
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring APR library
Platform: x86_64-unknown-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.5.2
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/src/httpd-2.4.20/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
configure failed for srclib/apr
不知道下一步该怎么做。现在我通过谷歌搜索找不到任何好的解决方案。如果我想手动执行,我需要下载哪些文件以及需要运行哪些命令?