Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I admit that I am a bit spoiled by the Windows installer. Anyway, I have mac os x leopard server and am trying to get gettext to work. I had trouble with pear but put the include for pear in the /etc/php.ini file. GetText seems different. I don't know where to point to in php.ini or if that's how to get it to "see" it. I installed GetText from source ./configure, make, etc. Do I have to reinstall PHP on Mac to get new stuff to work with --with? thank you.

edit: just wanted to ask a different way than the body above. With PHP, if you want a new feature, do you have to reinstall the whole thing? How does PHP know about the new library installs?

share|improve this question

You can also use MacPorts to install whatever extensions you need and keep them up-to-date.

This also saves you from having Apple come along and replace your configuration.

share|improve this answer

I can't directly address your question, but I would consider using an installer such as provided by MAMP or by using the BitNami MAMP Stack.

share|improve this answer

Wile using MacPorts is probably the easiest solution, it's not an answer to your question. The php.ini can define and load php extensions. Things like gettext are linked into php's source during build time and php will have to be recompiled from source to make use of your new libraries.

share|improve this answer
does that mean I need to redownload php, redo ./configure and make, the whole thing? – johnny Nov 20 '09 at 17:05
You have to compile php from source with your new gettext in the ./configure command. Or use macports to install php with gettext built in. – reconbot Nov 30 '09 at 17:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.