Skip to content

Instantly share code, notes, and snippets.

@apcro
Last active July 15, 2022 11:27
Show Gist options
  • Save apcro/99ced7c8a5b20fd77622e7394c2049ac to your computer and use it in GitHub Desktop.
Save apcro/99ced7c8a5b20fd77622e7394c2049ac to your computer and use it in GitHub Desktop.
Installing libvips from source and making it work
Installing `libvips` from source on Ubuntu 18.04 Bionic
(See the first comment at https://gist.github.com/apcro/99ced7c8a5b20fd77622e7394c2049ac for a formatted version of this gist)
<code>
wget https://github.com/libvips/libvips/releases/download/v8.8.2/vips-8.8.2.tar.gz
tar -xvf vips-8.8.2.tar.gz
cd vips-8.8.2
./configure
</code>
Make sure image loading libraries are installed.
<code>
* optional dependencies
use fftw3 for FFT: no
Magick package: MagickCore
Magick API version: magick6
load with libMagick: yes
save with libMagick: yes
accelerate loops with orc: no
(requires orc-0.4.11 or later)
ICC profile support with lcms: yes (lcms2)
file import with niftiio: no
file import with libheif: no
file import with OpenEXR: yes
file import with OpenSlide: no
(requires openslide-3.3.0 or later)
file import with matio: no
PDF import with PDFium no
PDF import with poppler-glib: no
(requires poppler-glib 0.16.0 or later)
SVG import with librsvg-2.0: yes
(requires librsvg-2.0 2.34.0 or later)
zlib: yes
file import with cfitsio: no
file import/export with libwebp: yes
(requires libwebp, libwebpmux, libwebpdemux 0.5.0 or later)
text rendering with pangoft2: no
file import/export with libpng: yes (pkg-config libpng >= 1.2.9)
(requires libpng-1.2.9 or later)
support 8bpp PNG quantisation: no
(requires libimagequant)
file import/export with libtiff: yes (pkg-config libtiff-4)
file import/export with giflib: yes (found by search)
file import/export with libjpeg: yes (pkg-config)
image pyramid export: no
(requires libgsf-1 1.14.26 or later)
use libexif to load/save JPEG metadata: yes
</code>
If not:
<code>
apt-get install glib2.0-dev build-essential libexpat1-dev libjpeg-dev libpng-dev libwebp-dev libgif-dev libexif-dev imagemagick libmagick++-dev
./configure
</code>
Once libraries are installed:
<code>
make
vips -v
</code>
If necessary, link binary
<code>
cd /usr/lib/
ln -s /usr/local/lib/libvips.so.42 libvips.so.42
vips -v
</code>
@m4rrc0
Copy link

m4rrc0 commented Feb 25, 2022

Thanks it helped me install version 8.10.5.
I believe instructions are lacking a make install step after make. At least I had to do that.

@brenthmiras
Copy link

Thanks so much for this.

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