An error occurred while recompiling make with FedoraApache2.

Source: Internet
Author: User
An error occurred while recompiling make with FedoraApache2 -- Linux Enterprise Application-Linux server application. For details, refer to the following section. I have been trying multiple PHP frameworks recently, so I want to install one on my own machine.
It is found that the PHP mysql module in which yum install is not loaded.
Dizzy, so re-compile PHP.
Simply uninstall the apache that comes with the system.
Install apache2.2.8,./configure -- prefix = ** -- enable-module = so.
However, an error occurred while making. A bunch of things have been defined.

Similar to the following information:
"Exports. c: 1653: error: redefinition of 'ap _ hack_apr_version_string'
Exports. c: 1022: error: previous definition of 'ap _ hack_apr_version_string 'was here
Make [2]: *** [exports. lo] Error 1
Make [2]: Leaving directory '/usr/local/src/httpd-2.2. */Server'
Make [1]: *** [all-recursive] Error 1
Make [1]: Leaving directory '/usr/local/src/httpd-2.2. */Server'
Make: *** [all-recursive] Error 1"

Some people say that the path is incorrect, some say that the perl Package is incorrect, and some say that zlib is incorrect.
The doctor is ill.
After turning over the web page for a long time.
Solution:
Add "-- with-defined ded-apr" to configure ".

Re-compile, make, make install. It is successful.

Note the following points during php Compilation:
Configure -- prefix =/usr/local/php -- with-apxs2 =/**/apache2/bin/apxs -- with-mysql = /***

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.