Skip to content

Instantly share code, notes, and snippets.

View chrisjz's full-sized avatar

Chris Zaharia chrisjz

View GitHub Profile
@chrisjz
chrisjz / install-ffmpeg-amazon-linux.sh
Last active October 11, 2017 04:53 — forked from prashantmaurice/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF
@chrisjz
chrisjz / install-tesseract-amazon-linux.sh
Last active October 12, 2017 05:54 — forked from IaroslavR/gist:834066ba4c0e25a27078
install last tesseract to Amazon Linux
sudo yum install autoconf aclocal automake
sudo yum install libtool
sudo yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel
cd ~/downloads
wget http://www.leptonica.com/source/leptonica-1.72.tar.gz
tar -zxvf leptonica-1.72.tar.gz
cd leptonica-1.72
./configure
make
sudo make install