Created
August 18, 2015 06:28
-
-
Save Coccodrillo/2ad42b0480160d7027a7 to your computer and use it in GitHub Desktop.
Install libvips in an Ubuntu 14:04 AWS EC2 instance. Adapted from https://gist.github.com/msurguy/b474b0b45825e07128f0 because I needed a newer version.
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/bash | |
sudo apt-get update && apt-get upgrade -qy | |
sudo dpkg --configure -a | |
sudo apt-get install build-essential git 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 libwebp-dev liborc-dev wget -qy | |
cd ~/ | |
wget http://www.vips.ecs.soton.ac.uk/supported/current/vips-8.0.2.tar.gz | |
tar -xzvf vips-8.0.2.tar.gz | |
cd /vips-8.0.2 | |
./configure && make && sudo make install | |
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" | |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$VIPSHOME/lib/pkgconfig" | |
export PYTHONPATH="$VIPSHOME/lib/python2.7/site-packages" | |
export PATH="/bin:/usr/local/bin:/usr/bin:$VIPSHOME:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment