Linux Learning notes Apache Installation Summary

Source: Internet
Author: User

#cd/usr/local

#mkdir APACHE

#tar zxvf/usr/etc/dev/httpd-2.2.9.tar.gz

#mv httpd-2.2.9/*.

#rm-RF httpd-2.2.9/

#./configure

<---prefix parameter meaning: Put the file under the/opt/apache/apache folder Uninstall, just delete this file

--prefix =/opt/apache/apache

--with-included-apr

--enable-so

--enable-deflate=shared

--enable-expire=shared

--enable-headers=shared

--enable-rewrite=shared

--enable-stactic-support

Error occurred: Checking for gcc ... no

Checking for cc ... no

Checking for D.exe ... no

Configure:error:no acceplatable C compiler found in $PATH

Reason did not install GCC compiler

Principle Analysis GCC environment is not installed need to install GCC

Install gcc-Required packages first

1 RPM-UVH glibc-kernheadless-2.4-9.1.103.el.i386.rpm

2 RPM-UVH glibc-headers-2.3.4-2.i386.rpm

3 RPM-UVH glibc-devel-2.3.4-2.i386.rpm

4 RPM-UVH cpp-3.4.3-9.el4.i386.rpm

5 RPM-UVH make-3.8.0-5.i386.rpm

6 RPM-UVH gcc-3.4.3-9.el4.i386.rpm

Packages required to install gcc-c++

7 RPM-UVH libstdc++-devel-3.4.3-9.el4.i386.rpm

8 RPM-UVH compat-gcc-32-3.2.3-47.3.i386.rpm

9 RPM-UVH compat-gcc-32-c++_3.2.3-47.3.i386.rpm

Note

Download Web site download and copy to the following path

G:\Program files\red Hat Enterprise Linux 4\

Exchange Data\other TOOLS\GCC

3) Enter the Linux 4 system

#cp/mnt/hgfs/exchange \data/other \tools/to copy the rpm name/usr/etc/dev/other TOOLS/GCC

#cd/usr/etc/dev/other TOOLS/GCC

4) Execute RPM command

4.1/4.2/4.3/4.4/4.5/

4.6 Error executing this command

#error: Failed Dependenceies

Cpp:3.4.4-9el4 is needed by gcc-3.4.3-9.el4.i386

Using the--nodeps parameter does not depend on other installation packages

#rpm-IVH--nodesps libstdc++-devel-3.4.3-9.

EL4. i386.rpm

Information Preparing appears ...

Installing Package libstdc++-devel-3.5.3.3

Needs 19MB on the filesystem

Linux Learning notes Apache Installation Summary

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.