Skip to content

Instantly share code, notes, and snippets.

@yratof
Created December 12, 2016 12:04
Show Gist options
  • Save yratof/bd5d4107ef5d9d44d4ad6a16732a9c94 to your computer and use it in GitHub Desktop.
Save yratof/bd5d4107ef5d9d44d4ad6a16732a9c94 to your computer and use it in GitHub Desktop.
Resinstall GD with Vagrant via PHPBrew
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
# Move phpbrew to somewhere can be found by your $PATH
sudo mv phpbrew /usr/bin/phpbrew
phpbrew ext install gd \
-- --with-libdir=lib/i386-linux-gnu \
--with-gd=shared \
--enable-gd-native-ttf \
--with-jpeg-dir=/usr \
--with-png-dir=/usr
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment