0

My client has given me access to RedHat server which requires to install apache but it does not have direct access to internet. So I cannot use "yum" command to install the packages. When I ran the command

yum install httpd

It gave me this error:

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

Then I manually downloaded httpd package and uploaded it to server and ran the command:

./configure --enable-so --enable-ssl --with-mpm=prefork --with-included-apr

Here was the output:

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

Don't know what to do next. Now I could not find any good solution by googling it. If I want to do it manually, what files do I need to download and what commands I need to run?

  • 1
    "This system is not registered to Red Hat Subscription Management." That doesn't sound like a CentOS box to me. – womble Jun 29 '16 at 4:48
  • The client said it is CentOS. Though I am not sure. I ran lsb_release -a and it returned "Distributor ID: RedHatEnterpriseServer". Should I change the title? @womble – Sultan Jun 29 '16 at 4:57
  • 1
    Regardless of whether it is RHEL or CentOS you can use the cd/dvd (image) as a repo and then install software with yum access.redhat.com/solutions/1355683 – HBruijn Jun 29 '16 at 5:13

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.