This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install autoconf aclocal automake | |
sudo yum install libtool | |
sudo yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel | |
cd ~/downloads | |
wget https://github.com/DanBloomberg/leptonica/releases/download/1.74.3/leptonica-1.74.3.tar.gz | |
tar -zxvf leptonica-1.74.3.tar.gz | |
cd leptonica-1.74.3 | |
./configure | |
make | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |