我的客户端已授予我访问RedHat服务器的权限,该服务器需要安装apache,但它无法直接访问Internet。所以我不能使用“yum”命令来安装软件包。 当我运行命令时
yum install httpd
它给了我这个错误: 加载的插件: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
不知道接下来该做什么。现在我用谷歌搜索找不到任何好的解决方案