Skip to content

Instantly share code, notes, and snippets.

@jacoduplessis
Created June 8, 2018 18:42
Show Gist options
  • Save jacoduplessis/c15a0404c0556b34a9f19f6653025772 to your computer and use it in GitHub Desktop.
Save jacoduplessis/c15a0404c0556b34a9f19f6653025772 to your computer and use it in GitHub Desktop.
Compile libvips for use with h2non/bimg
#!/bin/bash
apt-get install automake build-essential gobject-introspection gtk-doc-tools libglib2.0-dev libjpeg-dev libpng12-dev libwebp-dev libtiff5-dev libexif-dev libgsf-1-dev liblcms2-dev libxml2-dev swig libmagickcore-dev curl
LIBVIPS_VERSION=8.6.3
cd /tmp
curl -OL https://github.com/jcupitt/libvips/releases/download/v${LIBVIPS_VERSION}/vips-${LIBVIPS_VERSION}.tar.gz
tar zvxf vips-${LIBVIPS_VERSION}.tar.gz
cd /tmp/vips-${LIBVIPS_VERSION}
./configure --enable-debug=no --without-python $1
make
make install
ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment