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

错误现象:

解决:

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

 

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

 

命令行日志:

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

  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值