Skip to content

Instantly share code, notes, and snippets.

@ttback
Last active August 29, 2015 14:02
Show Gist options
  • Save ttback/6a04a130c3d5b9b80950 to your computer and use it in GitHub Desktop.
Save ttback/6a04a130c3d5b9b80950 to your computer and use it in GitHub Desktop.
Install libvips on Amazon EC2
LIBVIPS_FULL_VERSION=7.40.2
LIBVIPS_MAJOR_VERSION=echo $LIBVIPS_VERSION | sed 's/v//g' | sed 's/[^.]*$//' | sed 's/[.| ]*$//g'
curl -o vips-build.tar.gz http://www.vips.ecs.soton.ac.uk/supported/$LIBVIPS_MAJOR_VERSION/vips-$LIBVIPS_FULL_VERSION.tar.gz
mkdir vips-build && tar -xf vips-build.tar.gz -C vips-build --strip-components=1
cd vips-build
./configure
make && sudo make install
export LD_LIBRARY_PATH=/usr/local/lib
export LD_RUN_PATH=/usr/local/lib
@ttback
Copy link
Author

ttback commented Jul 1, 2014

I haven't tried this with a brand new AMI instance. My script only works on my own environment with bootstrap work already done.
You prob need to either try a different AMI ID(if already latest, then ignore this) or install those dep libs in your bootstrap scripts.
The tricks I wanted to remember here was that I had to export those LD_'s to my PATH

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