From 1d64cce4b922417aa383171f953c751a4d4b2c6c Mon Sep 17 00:00:00 2001 From: Chase Wright Date: Wed, 20 Sep 2017 09:44:39 -0500 Subject: [PATCH] Fix libpng-dev for Ubuntu 16.10 --- guac-install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/guac-install.sh b/guac-install.sh index e4c73e5..80d4f10 100644 --- a/guac-install.sh +++ b/guac-install.sh @@ -37,8 +37,16 @@ else JPEGTURBO="libjpeg62-turbo-dev" fi +# Ubuntu 16.10 has a different name for libpng12-dev for some reason... +if [ `egrep -c 'VERSION="16.10' /etc/os-release` -gt 0 ] +then + LIBPNG="libpng-dev" +else + LIBPNG="libpng12-dev" +fi + # Install features -apt -y install build-essential libcairo2-dev ${JPEGTURBO} libpng12-dev libossp-uuid-dev libavcodec-dev libavutil-dev \ +apt -y install build-essential libcairo2-dev ${JPEGTURBO} ${LIBPNG} libossp-uuid-dev libavcodec-dev libavutil-dev \ libswscale-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev \ libvorbis-dev libwebp-dev mysql-server mysql-client mysql-common mysql-utilities ${TOMCAT} freerdp ghostscript jq wget curl dpkg-dev