Skip to content

Instantly share code, notes, and snippets.

@knoxjeffrey
Last active November 7, 2016 11:30
Show Gist options
  • Save knoxjeffrey/775e5dc71ab4410ef88499721c22c32c to your computer and use it in GitHub Desktop.
Save knoxjeffrey/775e5dc71ab4410ef88499721c22c32c to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Go to ec2-user home directory
cd /home/ec2-user
# Update libpng first
curl -L http://sourceforge.net/projects/libpng/files/libpng15/1.5.27/libpng-1.5.27.tar.xz/download -o libpng.tar.xz
tar -Jxf libpng.tar.xz
cd libpng-1.5.27/
./configure
make
sudo make install
cd
#pngquant
wget http://pngquant.org/pngquant-2.7.2-src.tar.gz
tar -xvzf pngquant-2.7.2-src.tar.gz
cd pngquant-2.7.2
./configure
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment