if use CUDA
export LD_LIBRARY_PATH=/usr/local/cuda-11.0/lib64:/opt/ros/kinetic/lib
Solve the error install on Uuntu 20.04
this tip:
https://www.mathworks.com/matlabcentral/answers/1459909-installer-hang-when-installing-matlab-r2021b-as-root-on-ubuntu-20-04#comment_1759029
(run the command : xhost +SI:localuser:root)
and after
sudo ./install
worked for me (matlab 21b and ubuntu 20.04)