It’s very rare that Apache will be compiled on the first run on a brand new server. The fact is it requires a lot of pre-requisite and if any of them is missing or version compatibility then you may have to spend a lot of time fixing those. I was working on the brand new server Linux 6.4 to install Apache 2.4.6 and encountered the following error. If you are getting a similar error, you can fix it as I did by following.
Solution
After looking into various parameters, I noticed this happens when you have apr-util lower version than 1.4.1
Verify your apr-util version. If you find a lower version, then you must install the 1.4.1 or higher Download apr-util source code from http://mirror.nus.edu.sg/apache/apr/ Extract the downloaded file
Compile and install as following By default, it will install under /usr/local/apr/bin/apu-1-config Now you can compline apache with newly installed apr-util and it should be okay. It helped me and I hope you too.