Skip to content

Instantly share code, notes, and snippets.

@djrobby
Forked from yellow1912/vips.sh
Last active April 25, 2022 20:23
Show Gist options
  • Save djrobby/7d2b72dcf377b03402fc373958df632a to your computer and use it in GitHub Desktop.
Save djrobby/7d2b72dcf377b03402fc373958df632a to your computer and use it in GitHub Desktop.
Install libvips on Ubuntu
#!/bin/bash
#https://www.libvips.org/install.html
VERSION="8.12.2"
echo ""
echo "---------------------------------"
echo "| AUTO COMPILE LIBVIPS |"
echo "---------------------------------"
echo ""
echo "-----------------------"
echo "Installing cgif"
sudo add-apt-repository ppa:lovell/cgif
sudo apt update
sudo apt install libcgif-dev -y
echo "Installing libjpeg-turbo"
sudo apt install libjpeg-turbo8-dev -y
echo "Installing libgif"
sudo apt install libgif-dev -y
echo "Installing libexif"
sudo apt install libexif-dev -y
echo "Installing libexpat"
sudo apt install libexpat-dev -y
echo "Installing librsvg2"
sudo apt install librsvg2-dev -y
echo "Installing libpng"
sudo apt install libpng-dev -y
echo "Installing libimagequant"
sudo apt install libimagequant-dev -y
echo "Installing libwebp"
sudo apt install libwebp-dev -y
echo "Installing liborc"
sudo apt install liborc-0.4-dev -y
echo "Installing littlecms"
sudp apt install liblcms2-dev
echo "Installing imagemagick"
sudo apt install imagemagick
echo "Installing vips"
sudo apt install build-essential pkg-config -y
wget https://github.com/libvips/libvips/releases/download/v${VERSION}/vips-${VERSION}.tar.gz
tar xf vips-${VERSION}.tar.gz
cd vips-${VERSION}
./configure
make
sudo make install
sudo ldconfig
cd ../
rm -rf vips-${VERSION}
rm vips-${VERSION}.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment