Problems with apache installation in linux

Source: Internet
Author: User
For details about how to install apache in linux, refer to Linux general technology-Linux technology and application information. When I first installed apache in linux, I encountered a problem!

# Cd/usr/local
# Cd/usr/local/apr-1.4.6)
#./Configure
Checking build system type... i686-pc-linux-gnu
Checking host system type... i686-pc-linux-gnu
Checking target system type... i686-pc-linux-gnu
Grouping APR library
Platform: i686-pc-linux-gnu
Checking for working mkdir-p... yes
APR Version: 1.4.6
Checking for chosen layout... apr
Checking for gcc... no
Checking for cc... no
Checking for cl.exe... no
Configure: error: in '/usr/local/apr-1.4.6 ':
Configure: error: no acceptable C compiler found in $ PATHSee 'config. log' for more details
# Make & make install
Make: *** the target is not specified and the makefile cannot be found. Stop.



Next, install apache.
# Cd/usr/local
# Tar-zvxf httpd-2.4.1.tar.gz
# Cd httpd-2.4.1
#./Configure -- prefix =/usr/local/httpd-apache -- enable-so -- enable-mod-shares = "proxy proxy_http proxy_ftp proxy_connect headers cache"

Configure: WARNING: unrecognized options: -- enable-so, -- enable-mod-shares
Checking build system type... i686-pc-linux-gnu
Checking host system type... i686-pc-linux-gnu
Checking target system type... i686-pc-linux-gnu
Grouping APR library
Platform: i686-pc-linux-gnu
Checking for working mkdir-p... yes
APR Version: 1.4.6
Checking for chosen layout... apr
Checking for gcc... no
Checking for cc... no
Checking for cl.exe... no
Configure: error: in '/usr/local/apr-1.4.6 ':
Configure: error: no acceptable C compiler found in $ PATHSee 'config. log' for more details



The problem lies in the three marked red points.
1: configure: error: in '/usr/local/apr-1.4.6 ':
Configure: error: no acceptable C compiler found in $ PATH
What is the reason for this step?

2. # make & make install
Make: *** the target is not specified and the makefile cannot be found. Stop.
This step is based on the installation notes of others, but it also fails.

The Virtual Machine vmware and rhel6.1 have a lot of problems because they are just getting started. Thank you !! Thank you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.