diff --git a/utils/nightly/linux.sh b/utils/nightly/linux.sh
index 1de5520f07cebf8918ac7c1134debb820610056e..6cf8325ee826f54c51552429538e02f5962b1a52 100755
--- a/utils/nightly/linux.sh
+++ b/utils/nightly/linux.sh
@@ -16,7 +16,7 @@ cd ${GMSH} && svn update >> ${LOG} 2>&1
 mkdir ${GMSH}/bin
 cd ${GMSH}/bin && \
   ${CMAKE} -DGMSH_EXTRA_VERSION:string="${EXTRA_VERSION}"\
-           -DCMAKE_PREFIX_PATH:path="/usr/local;/usr/local/opencascade"\
+           -DCMAKE_PREFIX_PATH:path="/usr/local/med;/usr/local/opencascade;/usr/local"\
            -DENABLE_NATIVE_FILE_CHOOSER:bool=FALSE\
            -DENABLE_SWIG:bool=FALSE\
   ${GMSH} >> ${LOG} 2>&1