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'
解决方法:运行以下指令,安装libxt6
sudo apt install libxt6