Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-linux-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-linux-static.sh	(revision 27405)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-linux-static.sh	(revision 27406)
@@ -16,4 +16,5 @@
 # - Otherwise, refactor this to work with other gfortran installations.
 #
+echo "Finding libgfortran..."
 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-linux.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-linux.sh	(revision 27405)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-linux.sh	(revision 27406)
@@ -14,4 +14,5 @@
 # - Move this to etc/environment.sh
 #
+echo "Finding libgfortran..."
 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh	(revision 27405)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh	(revision 27406)
@@ -16,4 +16,5 @@
 # - Otherwise, refactor this to work with other gfortran installations.
 #
+echo "Finding libgfortran..."
 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh	(revision 27405)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh	(revision 27406)
@@ -14,4 +14,5 @@
 # - Move this to etc/environment.sh
 #
+echo "Finding libgfortran..."
 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
Index: /issm/trunk-jpl/externalpackages/gmsh/configs/4.10.5/static/CMakeLists.txt.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/gmsh/configs/4.10.5/static/CMakeLists.txt.patch	(revision 27406)
+++ /issm/trunk-jpl/externalpackages/gmsh/configs/4.10.5/static/CMakeLists.txt.patch	(revision 27406)
@@ -0,0 +1,25 @@
+--- src/CMakeLists.txt	2022-07-01 00:37:10
++++ /Users/jdq/Downloads/CMakeLists.txt	2022-11-21 11:51:13
+@@ -792,7 +792,7 @@
+   add_subdirectory(contrib/kbipack)
+   include_directories(contrib/kbipack)
+   if(ENABLE_GMP)
+-    find_library(GMP_LIB gmp)
++    find_library(GMP_LIB libgmp.a)
+     find_path(GMP_INC "gmp.h" PATH_SUFFIXES src include)
+   endif()
+   if(GMP_LIB AND GMP_INC)
+@@ -855,10 +855,9 @@
+ 
+ if(HAVE_MESH OR HAVE_SOLVER)
+   if(ENABLE_METIS)
+-    find_library(METIS_LIB metis PATH_SUFFIXES lib)
+-    find_path(METIS_INC "metis.h" PATH_SUFFIXES include)
+-    if(ENABLE_SYSTEM_CONTRIB AND METIS_LIB AND METIS_INC)
+-      message(STATUS "Using system version of METIS")
++    if(METIS_ROOT)
++      find_library(METIS_LIB metis PATHS ${METIS_ROOT} PATH_SUFFIXES lib)
++      find_path(METIS_INC "metis.h" PATHS ${METIS_ROOT} PATH_SUFFIXES include)
+       list(APPEND EXTERNAL_LIBRARIES ${METIS_LIB})
+       list(APPEND EXTERNAL_INCLUDES ${METIS_INC})
+       set_config_option(HAVE_METIS "Metis")
Index: /issm/trunk-jpl/externalpackages/gmsh/install-4-linux-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmsh/install-4-linux-static.sh	(revision 27405)
+++ /issm/trunk-jpl/externalpackages/gmsh/install-4-linux-static.sh	(revision 27406)
@@ -24,4 +24,5 @@
 # - Move this to etc/environment.sh
 #
+echo "Finding libgfortran..."
 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
Index: /issm/trunk-jpl/externalpackages/gmsh/install-4-linux.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmsh/install-4-linux.sh	(revision 27405)
+++ /issm/trunk-jpl/externalpackages/gmsh/install-4-linux.sh	(revision 27406)
@@ -24,4 +24,5 @@
 # - Move this to etc/environment.sh
 #
+echo "Finding libgfortran..."
 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
Index: /issm/trunk-jpl/externalpackages/gmsh/install-4-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmsh/install-4-mac-static.sh	(revision 27405)
+++ /issm/trunk-jpl/externalpackages/gmsh/install-4-mac-static.sh	(revision 27406)
@@ -15,4 +15,9 @@
 ## Constants
 #
+
+# NOTE: If updating version at all, need to generate new patch for 
+# 		configs/${VER}/static/CMakeLists.txt after applying changes from 
+#		previous version
+#
 VER="4.10.5"
 
@@ -27,4 +32,5 @@
 # - Otherwise, refactor this to work with other gfortran installations.
 #
+echo "Finding libgfortran..."
 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
@@ -45,6 +51,6 @@
 rm -rf gmsh-${VER}-source
 
-# Copy customized source and config files to 'src' directory
-cp configs/${VER}/static/CMakeLists.txt src
+# Apply patches
+#patch src/CMakeLists.txt < configs/${VER}/static/CMakeLists.txt.patch
 
 # Configure
@@ -82,8 +88,2 @@
 	make -j $1 install
 fi
-
-# Make necessary link on RHEL
-if [[ -d ${PREFIX}/lib64 && ! -d ${PREFIX}/lib ]]; then
-	cd ${PREFIX}
-	ln -s ./lib64 ./lib
-fi
Index: /issm/trunk-jpl/externalpackages/gmsh/install-4-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmsh/install-4-mac.sh	(revision 27405)
+++ /issm/trunk-jpl/externalpackages/gmsh/install-4-mac.sh	(revision 27406)
@@ -24,4 +24,5 @@
 # - Move this to etc/environment.sh
 #
+echo "Finding libgfortran..."
 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh	(revision 27405)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh	(revision 27406)
@@ -14,4 +14,5 @@
 # - Otherwise, refactor this to work with other gfortran installations.
 #
+echo "Finding libgfortran..."
 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-linux.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-linux.sh	(revision 27405)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-linux.sh	(revision 27406)
@@ -12,4 +12,5 @@
 # - Move this to etc/environment.sh
 #
+echo "Finding libgfortran..."
 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh	(revision 27405)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh	(revision 27406)
@@ -14,4 +14,5 @@
 # - Otherwise, refactor this to work with other gfortran installations.
 #
+echo "Finding libgfortran..."
 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh	(revision 27405)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh	(revision 27406)
@@ -12,4 +12,5 @@
 # - Move this to etc/environment.sh
 #
+echo "Finding libgfortran..."
 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)
 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
