diff --git a/build.sh b/build.sh
index 1a67d4c4911ede49b7b876d4f6ee0b638b56fd44..bb3b0e6857966a355c3a31949dba99ec77b5d311 100755
--- a/build.sh
+++ b/build.sh
@@ -19,6 +19,11 @@ if [ x"$hostname" == x"cifarm-ubuntu-node"  ]; then
 	export PATH="$HOME/openfpm_dependencies/openfpm_pdata/$6/MPI/bin/:$PATH"
 fi
 
+if [ x"$hostname" == x"cifarm-mac-node"  ]; then
+        export PATH="$HOME/openfpm_dependencies/openfpm_pdata/$6/MPI/bin/:$PATH"
+	export PATH="/usr/local/bin:$PATH"
+fi
+
 
 if [ x"$branch" == x"" ]; then
   branch=$(git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3)