Hi there,
I'm trying to get a development build of ISSM set up on a Linux cluster. I managed a functional install with Python, however issues with netCDF export in Python led me to also try a Matlab build to see I could circumvent the export issue.
I can run make and make install with no errors, however running <issmversion> in Matlab (after the correct paths have been added to Matlab) produces the following error:
Invalid MEX-file '/Home/siv34/rolaw8691/ISSM/ISSM/trunk/lib/IssmConfig_matlab.mexa64':
/Home/siv34/rolaw8691/ISSM/ISSM/trunk/externalpackages/petsc/install/lib/libpetsc.so.3.12:
undefined symbol: H5Pget_dxpl_mpio
Error in IssmConfig (line 14)
value = IssmConfig_matlab(string);
Error in issmversion (line 13)
disp([IssmConfig('PACKAGE_NAME') ' Version ' IssmConfig('PACKAGE_VERSION')]);
because this seemed related to HDF5 I tried installing that through the externalpackages directory, listing it in my config file and doing a full new install, however this produced the same error. I also can't see any flags for h5py in the configure help documentation. I've copied in my config file below the sign off in case that's useful.
Running lld on the MEX file gives:
libhdf5.so.103 => /Home/siv34/rolaw8691/ISSM/ISSM/trunk/externalpackages/petsc/install/lib/libhdf5.so.103 (0x00007f6e7a5cd000)
with the full output given after the config file in case that's useful.
Any help is of course very much appreciated!!
Best,
Rob
./configure \
--prefix="$ISSM_DIR" \
--with-matlab-dir="/usr/local/MATLAB/R2022b" \
--with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu/10 -lgfortran" \
--with-petsc-dir="$ISSM_DIR/externalpackages/petsc/install" \
--with-m1qn3-dir="$ISSM_DIR/externalpackages/m1qn3/install" \
--with-scalapack-dir="$ISSM_DIR/externalpackages/petsc/install" \
--with-mumps-dir="$ISSM_DIR/externalpackages/petsc/install" \
--with-triangle-dir="$ISSM_DIR/externalpackages/triangle/install" \
--with-metis-dir="$ISSM_DIR/externalpackages/petsc/install" \
--with-mpi-include="$ISSM_DIR/externalpackages/mpich/install/include" \
--with-mpi-libflags="-L$ISSM_DIR/externalpackages/mpich/install/lib -lmpich -lmpichf90 -lmpichcxx -lmpl" \
--with-hdf5-dir="$ISSM_DIR/externalpackages/hdf5/install" \
--enable-development \
--with-numthreads=2
ldd lib/IssmConfig_matlab.mexa64
linux-vdso.so.1 (0x00007ffd62fb1000)
libISSMMatlab.so => /Home/siv34/rolaw8691/ISSM/ISSM/trunk/lib/libISSMMatlab.so (0x00007f6e7d364000)
libISSMCore.so => /Home/siv34/rolaw8691/ISSM/ISSM/trunk/lib/libISSMCore.so (0x00007f6e7ccd2000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6e7cc91000)
libmex.so => not found
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f6e7caad000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6e7c8bb000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f6e7c8a0000)
libparmetis.so => /Home/siv34/rolaw8691/ISSM/ISSM/trunk/externalpackages/petsc/install/lib/libparmetis.so (0x00007f6e7c85e000)
libmetis.so => /Home/siv34/rolaw8691/ISSM/ISSM/trunk/externalpackages/petsc/install/lib/libmetis.so (0x00007f6e7c7f1000)
libmpi.so.12 => /Home/siv34/rolaw8691/ISSM/ISSM/trunk/externalpackages/petsc/install/lib/libmpi.so.12 (0x00007f6e7c48d000)
libmpifort.so.12 => /Home/siv34/rolaw8691/ISSM/ISSM/trunk/externalpackages/petsc/install/lib/libmpifort.so.12 (0x00007f6e7c411000)
libmx.so => not found
libmex.so => not found
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6e7c2c2000)
libpetsc.so.3.12 => /Home/siv34/rolaw8691/ISSM/ISSM/trunk/externalpackages/petsc/install/lib/libpetsc.so.3.12 (0x00007f6e7aca7000)
libgfortran.so.5 => /usr/lib/x86_64-linux-gnu/libgfortran.so.5 (0x00007f6e7a9dd000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6e7d646000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f6e7a9d3000)
libhdf5.so.103 => /Home/siv34/rolaw8691/ISSM/ISSM/trunk/externalpackages/petsc/install/lib/libhdf5.so.103 (0x00007f6e7a5cd000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6e7a5c7000)
libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007f6e7a57d000)
libz.so.1 => /Home/siv34/rolaw8691/ISSM/ISSM/trunk/externalpackages/petsc/install/lib/libz.so.1 (0x00007f6e7a562000)