diff --git a/build/install-deps-linux.sh b/build/install-deps-linux.sh index 2732ff78f4..b58b8ca923 100755 --- a/build/install-deps-linux.sh +++ b/build/install-deps-linux.sh @@ -8,20 +8,26 @@ if [ ! $(command -v apt-get) ]; then exit 0 fi +#install g++-4.9 +sudo add-apt-repository ppa:ubuntu-toolchain-r/test +sudo apt-get update + +#try to remove glfw2 +sudo apt-get remove libglfw2 + DEPENDS='libx11-dev' DEPENDS+=' libxmu-dev' DEPENDS+=' libglu1-mesa-dev' DEPENDS+=' libgl2ps-dev' DEPENDS+=' libxi-dev' -DEPENDS+=' g++' +DEPENDS+=' g++-4.9' DEPENDS+=' libzip-dev' DEPENDS+=' libpng12-dev' DEPENDS+=' libcurl4-gnutls-dev' DEPENDS+=' libfontconfig1-dev' DEPENDS+=' libsqlite3-dev' -DEPENDS+=' libglew*-dev' +DEPENDS+=' libglew-dev' DEPENDS+=' libssl-dev' -DEPENDS+=' gnutls-dev' MISSING= echo "Checking for missing packages ..." @@ -31,6 +37,13 @@ for i in $DEPENDS; do fi done + +if [ -f /usr/bin/g++ ];then +sudo rm /usr/bin/g++ +echo "remove old g++" +fi +sudo ln -s /usr/bin/g++-4.9 /usr/bin/g++ + if [ -n "$MISSING" ]; then TXTCOLOR_DEFAULT="\033[0;m" TXTCOLOR_GREEN="\033[0;32m"