diff --git a/README.md b/README.md index 05b1543f..03e115fc 100755 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ To install the most suitable version of libvips on the following Operating Syste * Red Hat Linux * RHEL/Centos/Scientific 6, 7 * Fedora 21, 22 + * Amazon Linux 2014.09 run the following as a user with `sudo` access: diff --git a/preinstall.sh b/preinstall.sh index 3325f298..b7f71aab 100755 --- a/preinstall.sh +++ b/preinstall.sh @@ -10,6 +10,7 @@ # * Red Hat Linux # * RHEL/Centos/Scientific 6, 7 # * Fedora 21, 22 +# * Amazon Linux 2014.09 vips_version_minimum=7.40.0 vips_version_latest_major=7.42 @@ -143,6 +144,19 @@ case $(uname -s) in sorry "$RELEASE" ;; esac + elif [ -f /etc/system-release ]; then + # Probably Amazon Linux + RELEASE=$(cat /etc/system-release) + case $RELEASE in + "Amazon Linux AMI release 2014.09") + # Amazon Linux + echo "Detected '$RELEASE'" + echo "Installing libvips dependencies via yum" + yum groupinstall -y "Development Tools" + yum install -y gtk-doc libxml2-devel libjpeg-turbo-devel libpng-devel libtiff-devel libexif-devel lcms-devel ImageMagick-devel gobject-introspection-devel libwebp-devel curl + install_libvips_from_source "--prefix=/usr" + ;; + esac else # Unsupported OS sorry "$(uname -a)"