C/C++教程

centos安装matlab-巨多坑!

本文主要是介绍centos安装matlab-巨多坑!,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

挂载
sudo mkdir -p /mnt
sudo mount -t iso9660 -o loop R2020b_Linux.iso /mnt

或解压:把/home目录下面的mydata.zip解压到mydatabak目录里面
unzip mydata.zip -d mydatabak

复制(可能不需要)
sudo mkdir -p /matlab1
cd /mnt
sudo cp -R * /matlab1
sudo umount /mnt

取消挂载失败:
umount: /mnt: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
解决:fuser -mv /mnt/
kill -9
还是挂载失败!重启试试??

安装2021a(安装界面打不开)、2020a(安装完后卡住)都失败!
cd /mnt
sudo ./install

报错:
terminate called after throwing an instance of ‘std::runtime_error’
what(): Unable to launch the MATLABWindow application
Aborted

解决方法:
使用install_unix_legacy安装

安装完后找不到命令:
将matlab添加到.bashrc 文件中
vi ~/.bashrc
export PATH=/home/usr/matlab2019/bin:$PATH
source ~/.bashrc
之后启动matlab,可直接输入:
matlab

安装2020b报错:
MATLAB is selecting SOFTWARE OPENGL rendering.
/usr/local/MATLAB/R2020b/bin/matlab: /usr/local/MATLAB/R2020b/bin/ldd: /bin/sh: bad interpreter: Operation not permitted
/usr/local/MATLAB/R2020b/bin/glnxa64/MATLAB: symbol lookup error: /usr/local/MATLAB/R2020b/bin/glnxa64/…/…/sys/os/glnxa64/libstdc++.so.6: undefined symbol: __cxa_thread_atexit_impl

解决第一个错误:使用sudo ./matlab
解决第二个错误:
sudo ln -sf /usr/lib/libstdc++.so.6.0.19 /usr/local/MATLAB/R2020B/sys/os/glnxa64/libstdc++.so.6
之后仍然卡在
MATLAB is selecting SOFTWARE OPENGL rendering

卸载matlab:但不干净
sudo rm -rf /usr/local/MATLAB/R2012a
sudo rm /usr/local/bin/matlab /usr/local/bin/mcc /usr/local/bin/mex /usr/local/bin/mbuild
有几个空文件夹删除不掉,cannot remove ‘R2020b/bin/glnxa64’: Directory not empty,有毒,无解

官网可以下载历史版本,2020ab安装均失败!
版本:https://ww2.mathworks.cn/downloads/web_downloads/select_release?mode=gwylf

正在尝试2019b和2019a:
输入matlab后无反应
卡在MATLAB is selecting SOFTWARE OPENGL rendering

无解

尝试2018b:
成功!!!训练看看行不行,毕竟版本比较旧

这篇关于centos安装matlab-巨多坑!的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!