Skip to content

Instantly share code, notes, and snippets.

@rbarros
Forked from istepanov/install_gettext.sh
Last active August 29, 2015 14:06
Show Gist options
  • Save rbarros/fea658c72872d73c43b6 to your computer and use it in GitHub Desktop.
Save rbarros/fea658c72872d73c43b6 to your computer and use it in GitHub Desktop.
#!/usr/bin/sh
# Scipt for installing mcrypt.so extension for PHP 5.3.13 (default PHP for OS X 10.8 Mountain Lion)
mkdir /tmp/gettext
cd /tmp/gettext
curl --location --progress-bar http://br1.php.net/get/php-5.3.29.tar.gz/from/this/mirror | tar -zx
brew update
brew install gettext
cd /tmp/gettext/php-5.3.29/ext/gettext/
phpize
./configure --with-gettext=/usr/local/Cellar/gettext/0.19.2
make
sudo cp modules/gettext.so /usr/lib/php/extensions/no-debug-non-zts-20090626/
cd ~ && rm -rf /tmp/gettext
echo "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