diff --git a/script/solve_gpp b/script/solve_gpp
index 0e90c56856c08f7b7de01c22fdaa6b9ad5c64a84..1017c654095dfab5ae9bd45ceec6b54e84a69db9 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[@]}"