Apache installation mod_dir.so: undefined symbol handles apache installation dependency on APR and APR-Util, which may cause an error because apr cannot be found. 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!