linux下无图形界面安装matlab 总结

论坛 期权论坛 脚本     
匿名技术用户   2021-1-3 19:26   11   0

linux下无图形界面安装matlab,参考:
https://blog.csdn.net/Xiao_Song_PKU/article/details/82700228

这里总结一下遇到的问题:

1、解压R2017b_glnxa64.zip时,遇到错误:

root@node1:~/MATLAB_R2017b_Linux# unzip R2017b_glnxa64.zip
Archive:  R2017b_glnxa64.zip
warning [R2017b_glnxa64.zip]:  zipfile claims to be last disk of a multi-part archive;  attempting to process anyway, assuming all parts have been concatenated
  together in order.  Expect "errors" and warnings...true multi-part support
  doesn't exist yet (coming soon).
file #1:  bad zipfile offset (local header sig):  4

出现问题,这种错误应该是系统无法直接解压被分割的zip,可以先在Windows解压好zip直接拷过来,或者在Linux下先合并文件修复再解压,用下面的代码:

root@node1:~/MATLAB_R2017b_Linux# cat R2017b_glnxa64.* > R2017b_glnxa64_all.zip 
root@node1:~/MATLAB_R2017b_Linux# zip -F R2017b_glnxa64_all.zip  
root@node1:~/MATLAB_R2017b_Linux# unzip R2017b_glnxa64_all.zip  

其中第2个,zip -F R2017b_glnxa64_all.zip ,可能会修复失败,
失败的话就直接运行第3个吧,
运行unzip R2017b_glnxa64_all.zip,输出好像会有错误提示,不用管,
我记得最后一行是flatting开头的,这时候就是开始解压了,要等一段时间,
解压完成后,目录下就有 R2017b_glnxa64.iso 这东西了

2、安装完成后,运行matlab时遇到一下问题:

root@node1:~/MATLAB_R2017b_Linux# matlab
MATLAB is selecting SOFTWARE OPENGL rendering.
Fatal Internal Error: Unexpected exception: 'N5boost16exception_detail10clone_implINS0_39current_exception_std_exception_wrapperISt13runtime_errorEEEE: Bundle#1 start failed: libXt.so.6: cannot open shared object file: No such file or directory' in createMVMAndCallParser phase 'Creating local MVM'

解决参考:https://www.mathworks.com/matlabcentral/answers/345067-why-do-i-receive-a-fatal-internal-error-when-trying-to-start-matlab-on-my-computer-running-linux

解决方法:运行以下指令,安装libxt6

sudo apt install libxt6

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP