Last active
August 29, 2015 14:02
-
-
Save ttback/6a04a130c3d5b9b80950 to your computer and use it in GitHub Desktop.
Install libvips on Amazon EC2
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
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 |
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
Could you provide more context around how you use this script? I'm trying to get it to work with Elastic Beanstalk with the Amazon Linux AMI, and I end up missing packages:
Thank you!