Apache installation mod_dir.so: undefinedsymbol handles apache installation dependency on APRandAPR-Util, which may cause an error because apr cannot be found. Tar-zxvfapr-1.4.6.tar.gzcdapr-1.4.6./configure -- prefix/usr/localmake & amp; makeinstallt. Apache install mod_dir.so: undefined symbol handle apache installation dependency on APR and APR-Util, which may be caused by failure to find apr. Tar-zxvf apr-1.4.6.tar.gzcd apr-1.4.6. /configure -- prefix =/usr/localmake & make installtar-zxvf apr-util-1.5.2.tar.gzcd apr-util-1.5.2. /configure -- with-apr =/usr/local/binmake & make installtar-zxvf pcre-8.21.tar.gzcd pcre-8.21. /configure -- prefix =/usr/localmake & make installtar-zxvf httpd-2.4.4.tar.gzcd httpd-2.4.4mv .. apr-1.4.6 srclib/apr-Rmv .. /apr-util-1.5.2 srclib/apr-util-R. /configur E -- with-defined Ded-apr -- with-pcre =/usr/local/bin/pcre-config -- with-layout = Apache -- enable-modules = most -- enable-MoD-shared = list -- with-mpm = prefork make & make install # if it is -- enable-MoD-shared = list, the module is statically compiled into apache. Note: 1. the following error may occur when installing the httpd-2.x. c: 1582: error: previous definition of 'AP _ hack_apr_proc_mutex_lockfile 'was here is because the correct apr and apu paths are not found. you need to reinstall apr, apr-util, and write out the correct file path. -- With-apr =/usr/local/bin/apr-1-config -- with-apr-util =/usr/local/apr/bin/apu-1-config 2. an error is found during startup./mod_dir.so: undefined symbol: apr_array_clear is changed to -- with-defined Ded-apr and specified pcre-config, which can be started normally: tar-zxvf apr-1.4.6.tar.gztar-zxvf apr-util-1.5.2.tar.gz cd httpd-2.4.4mv .. apr-1.4.6 srclib/apr-Rmv .. /apr-util-1.5.2 srclib/apr-util-R. /configure -- with-defined Ded-apr -- with-pcre =/usr/local/bin/pcre-conf Ig -- with-layout = Apache -- enable-modules = most -- enable-MoD-shared = list -- with-mpm = prefork it seems that -- with-supported Ded-apr is the most reliable!
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