MatLab启动报错MATLAB is selecting SOFTWARE OPENGL rendering. License checkout failed.

错误现象:

MatLab启动报错MATLAB is selecting SOFTWARE OPENGL rendering. License checkout failed._第1张图片

解决:

sudo rm -rf /usr/local/MATLAB/R2017a/sys/os/glnxa64/libstdc++.so.6

MatLab启动报错MATLAB is selecting SOFTWARE OPENGL rendering. License checkout failed._第2张图片

 

再次启动,启动成功:(前面不加sudo)

MatLab启动报错MATLAB is selecting SOFTWARE OPENGL rendering. License checkout failed._第3张图片

MatLab启动报错MATLAB is selecting SOFTWARE OPENGL rendering. License checkout failed._第4张图片

 

命令行日志:

ly@ubuntu:~$ sudo matlab
[sudo] password for ly: 
MATLAB is selecting SOFTWARE OPENGL rendering.
License checkout failed.
License Manager Error -9
Your username does not match the username in the license file. 
To run MATLAB on this computer, you must run the Activation client to reactivate your license.

Troubleshoot this issue by visiting: 
http://www.mathworks.com/support/lme/R2017a/9

Diagnostic Information:
Feature: MATLAB 
License path: /home/ly/.matlab/R2017a_licenses:/usr/local/MATLAB/R2017a/licenses/license.dat:/usr/local/MATLAB/R20
17a/licenses/license_ubuntu_40588452_R2017a.lic 
Licensing error: -9,57.
ly@ubuntu:~$ whereis matlab
matlab: /usr/bin/matlab /usr/lib/matlab /etc/matlab /usr/local/bin/matlab /usr/share/matlab
ly@ubuntu:~$ whereis matlab
matlab: /usr/bin/matlab /usr/lib/matlab /etc/matlab /usr/local/bin/matlab /usr/share/matlab
ly@ubuntu:~$ cd /usr/local/bin/
ly@ubuntu:/usr/local/bin$ dir
matlab
ly@ubuntu:/usr/local/bin$ ll
total 8
drwxr-xr-x  2 root root 4096 May 12 18:45 ./
drwxr-xr-x 11 root root 4096 May 12 09:23 ../
lrwxrwxrwx  1 root root   35 May 12 18:45 matlab -> /usr/local/MATLAB/R2017a/bin/matlab*
ly@ubuntu:/usr/local/bin$ sudo ln -s /usr/lib/x86_64-linux-gnu/lib
Display all 1375 possibilities? (y or n)^C
ly@ubuntu:/usr/local/bin$ sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25 /usr/local/MATLAB/R2017a/sys/os/glnxa64/libstdc++.so.6
ln: failed to create symbolic link '/usr/local/MATLAB/R2017a/sys/os/glnxa64/libstdc++.so.6': File exists
ly@ubuntu:/usr/local/bin$ sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25 /usr/local/MATLAB/R2017a/sys/os/glnxa64/libstdc++.so.6
ln: failed to create symbolic link '/usr/local/MATLAB/R2017a/sys/os/glnxa64/libstdc++.so.6': File exists
ly@ubuntu:/usr/local/bin$ sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25 /usr/local/MATLAB/R2017a/sys/os/glnxa64/libstdc++.so.6
ln: failed to create symbolic link '/usr/local/MATLAB/R2017a/sys/os/glnxa64/libstdc++.so.6': File exists
ly@ubuntu:/usr/local/bin$ sudo rm -rf /usr/local/MATLAB/R2017a/sys/os/glnxa64/libstdc++.so.6
ly@ubuntu:/usr/local/bin$ 

参考博客:

https://blog.csdn.net/wuzuyu365/article/details/52484860

https://blog.csdn.net/weixin_41632560/article/details/79773501

你可能感兴趣的:(日用操作)