From a4cc438f2b4d9e20352fe6a00568e968883ddbca Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Sat, 29 Jul 2017 19:03:04 +0200 Subject: [PATCH] install gcc for Archlinux --- script/solve_gpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/script/solve_gpp b/script/solve_gpp index 0e90c568..1017c654 100755 --- a/script/solve_gpp +++ b/script/solve_gpp @@ -18,7 +18,14 @@ if [ x"$1" = x"osx" ]; then compiler_gcc="gcc-4.9" compiler_gpp="g++-4.9" elif [ x"$1" = x"linux" ]; then - if [ x"$pcman" == x"yum" ]; then + + if [ x"$pcman" == x"pacman" ]; then + commands[0]="su -c \"$pcman -Sy gcc\"" + commands[1]="sudo $pcman -Sy gcc" + possible_solutions "${commands[@]}" + compiler_gcc="gcc" + compiler_gpp="g++" + elif [ x"$pcman" == x"yum" ]; then commands[0]="su -c \"$pcman install gcc-c++\"" commands[1]="sudo $pcman install gcc-c++" possible_solutions "${commands[@]}" -- GitLab