Skip to content

Instantly share code, notes, and snippets.

@agustinhaller
Created May 29, 2014 06:06
Show Gist options
  • Select an option

  • Save agustinhaller/0abfb8cea658b021ff0e to your computer and use it in GitHub Desktop.

Select an option

Save agustinhaller/0abfb8cea658b021ff0e to your computer and use it in GitHub Desktop.
attempt to install gettext php extension in mountain lion osx
# Download from: http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.3.2.tar.gz
cd ~/Downloads
tar xzvf gettext-0.18.3.2.tar.gz
cd gettext-0.18.3.2
./configure
make
sudo make install
# If this doesn't work, then install gettext using "brew install gettext"
# Download from: http://www.php.net/get/php-5.5.12.tar.gz/from/a/mirror
cd ~/Downloads/php-5.5.12/ext/gettext
phpize
./configure
make
sudo cp modules/gettext.so /usr/lib/php/extensions/no-debug-non-zts-20090626/
# Don't forget to add 'extension=gettext.so' to /etc/php.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment