MATLAB: Do I receive “Error executing the PBS command ‘qstat’. The reason given is: qstat: /lib64/libz.so.1: version `ZLIB_1.2.3.3′ not found (required by $MATLABROO​T/bin/glnx​a64/libxml​2.so.2)” when trying to validate

MATLAB

I have installed Torque on my MATLAB Parallel Server cluster, but I am receiving an error when trying to run validation. Why do I receive "Error executing the PBS command 'qstat'. The reason given is: qstat: /lib64/libz.so.1: version `ZLIB_1.2.3.3' not found (required by $MATLABROOT/bin/glnxa64/libxml2.so.2)" when trying to validate?

Best Answer

This error message is caused by MATLAB using its included libxml2.so.2 library, which requires a version of ZLIB newer than the version shipped with the operating system. To resolve the issue, you can use the following commands to update the symlink to the point to the system's libxml2.so.2:
1. cd $MATLABROOT/bin/glnxa64
Where $MATLABROOT is the MATLAB installation folder
2. unlink libxml2.so.2
Note: Saving a backup copy of this file under another name (libxml2.so.2.bak) or in another location is recommended
3. ln -s /usr/lib64/libxml2.so.2.7.6 libxml2.so.2
Note: If your system's libxml2.so.2 library exist elsewhere, you will have to change the link location accordingly
Once completed, you should be able to proceed with the validation process.
  • NOTE: Starting in R2019a the following name changes occurred:
  • MATLAB Distributed Computing Server was renamed to MATLAB Parallel Server
  • mdce_def was renamed to mjs_def
  • mdce binary was renamed to mjs