Index: /issm/trunk-jpl/jenkins/ross-debian_linux-binaries-solid_earth
===================================================================
--- /issm/trunk-jpl/jenkins/ross-debian_linux-binaries-solid_earth	(revision 25094)
+++ /issm/trunk-jpl/jenkins/ross-debian_linux-binaries-solid_earth	(revision 25095)
@@ -32,6 +32,5 @@
 	--with-petsc-dir=${ISSM_DIR}/externalpackages/petsc/install \
 	--with-triangle-dir=${ISSM_DIR}/externalpackages/triangle/install \
-	--with-boost-dir=${ISSM_DIR}/externalpackages/boost/install \
-	--with-gmsh-dir=${ISSM_DIR}/externalpackages/gmsh/install
+	--with-boost-dir=${ISSM_DIR}/externalpackages/boost/install
 '
 
Index: /issm/trunk-jpl/jenkins/ross-debian_linux-solid_earth
===================================================================
--- /issm/trunk-jpl/jenkins/ross-debian_linux-solid_earth	(revision 25094)
+++ /issm/trunk-jpl/jenkins/ross-debian_linux-solid_earth	(revision 25095)
@@ -23,6 +23,5 @@
 	--with-petsc-dir=${ISSM_DIR}/externalpackages/petsc/install \
 	--with-triangle-dir=${ISSM_DIR}/externalpackages/triangle/install \
-	--with-boost-dir=${ISSM_DIR}/externalpackages/boost/install \
-	--with-gmsh-dir=${ISSM_DIR}/externalpackages/gmsh/install \
+	--with-boost-dir=${ISSM_DIR}/externalpackages/boost/install
 '
 
Index: /issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m
===================================================================
--- /issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m	(revision 25094)
+++ /issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.m	(revision 25095)
@@ -16,6 +16,9 @@
 
 	% Get Gmsh version
-	gmshmajorversion = IssmConfig('_GMSH_VERSION_MAJOR_');
-
+	[s,r]=system(['gmsh -info | grep ''Version'' | sed -e ''s/Version[[:blank:]]*:[[:blank:]]//'' | cut - d ''.'' -f1'])
+	if s~=0,
+		error(r);
+	end
+	gmshmajorversion=r
 	if ~ismember([3,4],gmshmajorversion),
 		error(['gmshplanet: Gmsh major version ' gmshmajorversion ' not supported!']);
Index: /issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py
===================================================================
--- /issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py	(revision 25094)
+++ /issm/trunk-jpl/src/m/mesh/planet/gmsh/gmshplanet.py	(revision 25095)
@@ -3,5 +3,4 @@
 import numpy as np
 
-from IssmConfig import IssmConfig
 from MatlabFuncs import *
 from mesh3dsurface import *
@@ -27,6 +26,10 @@
 
     # Get Gmsh version
-    gmshmajorversion = IssmConfig('_GMSH_VERSION_MAJOR_')[0] # Stored as IssmDouble, which gets instantiated as a tuple in Python
-
+    args = "gmsh -info | grep 'Version' | sed -e 's/Version[[:blank:]]*:[[:blank:]]//' | cut - d '.' -f1"
+    proc = subprocess.Popen(args, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+    outs, errs = proc.communicate()
+    if errs != '':
+        raise Exception("gmshplanet: call to gmsh failed: {}".format(errs))
+    gmshmajorversion = outs
     if gmshmajorversion not in [3, 4]:
         raise RuntimeError('gmshplanet: Gmsh major version %s not supported!' % gmshmajorversion)
Index: /issm/trunk-jpl/src/wrappers/IssmConfig/IssmConfig.cpp
===================================================================
--- /issm/trunk-jpl/src/wrappers/IssmConfig/IssmConfig.cpp	(revision 25094)
+++ /issm/trunk-jpl/src/wrappers/IssmConfig/IssmConfig.cpp	(revision 25095)
@@ -107,11 +107,4 @@
 		#endif
 	}
-	else if(strcmp(name,"_GMSH_VERSION_MAJOR_")==0){
-		#ifdef _GMSH_VERSION_MAJOR_
-		value = IssmDouble(_GMSH_VERSION_MAJOR_);
-		#else
-		_error_("_GMSH_VERSION_MAJOR_ not found in config.h");
-		#endif
-	}
 	else if(strcmp(name,"ISSM_PREFIX")==0){
 		isstring = true;
