MacPorts on mountain lion - cannot install apache2 due to gettext package I have been having problem with installing gettext package from macports. When I am launching

 /opt/local/bin/port -v install apache2


it checks dependencies, and continues with gettext package installation. But the configure process freezes here:

checking for egrep... /usr/bin/grep -E


and nothing happens.. can wait hours, nothing changes.

I tried to configure, make, make install manually for that package and it went all fine. But, when same configure is launched by ports, it hangs there. Question:

1) How can that be fixed?
2) Maybe I can somehow manually tell ports, that I installed that gettext package manually already?

Sorry, if wrong "site" for this question. Felt most proper one.



sudo port -v install apache2 solved the problem :/

still unbelievable, that same operation from root user was hanging..
You need to run macport port command as root best using port as shown in all the examples in the Macports guide This is so that all the processes are set up as the correct user and the files are saved no changeable by other users.

e.g.
sudo /opt/local/bin/port -v install apache2