Skip to content

Instantly share code, notes, and snippets.

@msurguy
Last active August 30, 2021 21:18
Show Gist options
  • Save msurguy/b474b0b45825e07128f0 to your computer and use it in GitHub Desktop.
Save msurguy/b474b0b45825e07128f0 to your computer and use it in GitHub Desktop.
Installing VIPS on Digital Ocean (Ubuntu 14). VIPS (http://www.vips.ecs.soton.ac.uk/) is super fast image processor that performs faster than anything else. Please read the comments for even quicker install
cat ~/.ssh/id_rsa.pub | ssh forge@yourserverIP "cat >> ~/.ssh/authorized_keys"
ssh 'forge@yourserverIP'
mkdir vips
cd vips
wget -c http://www.vips.ecs.soton.ac.uk/supported/current/vips-7.38.5.tar.gz
tar xzvf vips-7.38.5.tar.gz
cd vips-7.38.5/
su - root
sudo dpkg --configure -a
sudo apt-get install pkg-config
sudo apt-get install build-essential pkg-config glib-2.0 libxml2-dev libxslt1-dev libfftw3-dev gettext libgtk2.0-dev python-dev liblcms1-dev liboil-dev libmagickwand-dev libopenexr-dev libcfitsio3-dev gobject-introspection flex bison
./configure && make && make install
echo "/usr/local/lib/" >> /etc/ld.so.conf.d/local.conf
sudo apt-get install libvips
cd ..
wget http://upload.wikimedia.org/wikipedia/commons/d/dc/Lower_Manhattan_from_Staten_Island_Ferry_Corrected_Jan_2006.jpg
mv Lower_Manhattan_from_Staten_Island_Ferry_Corrected_Jan_2006.jpg image.jpg
vips dzsave image.jpg x --layout zoomify
@rizalp
Copy link

rizalp commented Sep 18, 2014

I think it would be better if we add --no-install-recommends flag to avoid installing nip2 (recommends) package.

For comparison:

apt-get install libvips Need to get 58.7 MB of archives. Complete with unnecessary package like firefox. Why would I need firefox if this tools will be installed on the server?

apt-get install libvips --no-install-recommends Need to get 7,910 kB. Now that's better

@skunkworker
Copy link

Some libraries (ruby-vips) use dev instead of the main install.
use this if you are still having issues:
apt-get install libvips-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment