Originally posted by: SystemAdmin
The other thing that you might do is to make sure you are not using the AIX ksh when doing this compile.
Solution to slow build of apache and gcc
We found it was taking from two to three hours to run the configure script for apache. After searching we found that the solution was to change the environment variable CONFIG_SHELL to point to a different shell than the default ksh. When this was done, the multi-hour run of ./configure was done in 3 minutes.
Solution:
From the Mozilla site for AIX it says:
export CONFIG_SHELL=/opt/freeware/bin/bash
export CONFIGURE_ENV_ARGS=/opt/freeware/bin/bash
./configure
From testing, I found I could also use ksh93 and get similar results.
export CONFIG_SHELL=/usr/bin/ksh93
./configure
Why does this happen? What has been reported is that ksh uses /tmp files for redirection, piping, shelling, etc., while the other shells actually use memory for these purposes.
ls -l | grep -E "Feb 15"
showed that while running with ksh I had 50 or so files active at any time, while with the other shells there was very little activity.
topas
showed that I had 100% usage of hdisk0.