Installing Apache on Linux is a error1 error

Source: Internet
Author: User

A similar problem occurs when you install Apachenormally, all make:

MAKE[1]: * * * [shared-build-recursive] Error 1 make[1]: Leaving directory '/lamp/httpd-2.4.7 ' make: * * * [all-recursive] Err or 1

Workaround:

Install auxiliary software zlib;

The steps are as follows:

Download zlib-1.2.3.tar.gz in the/usr/local directory and execute the following command:
TAR-ZXVF zlib-1.2.3.tar.gz
CD zlib-1.2.3
./configure
VI Makefile
Find Cflags=-o3-duse_mmap
By adding-fpic to the back, it becomes cflags=-o3-duse_mmap-fpic.
Make && make install

Then reinstall Apache can solve the problem (be sure to pay attention to modify the file Makefile);

Installing Apache on Linux is a error1 error

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.