MATLAB: /opt/matla​b/R2017b/b​in/glnxa64​/mcc: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

libx11.so.6shared libraries

Hi,
I installed Matlab on a fresh machine. When I run any commands I get the following error:
/opt/matlab/R2017b/bin/glnxa64/mcc: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
Anyone with this issue before?
Thanks

Best Answer

I could got rid of this error after installing lib-X11
sudo yum -y install lib-X11
Should not Matlab list this as a pre-requisite in their documentation?