centos 7 安装matlab 2017b

  1. 挂载matlab镜像

     sudo mkdir /mnt/matlab
     sudo mount -o loop /home/data/package/R2017b_glxna64.iso /mnt/matlab
     cd /mnt/matlab
    
  2. 安装 MATLAB

     sudo ./install -fileInstallationKey 09806-07443-53955-64350-21751-41297 -agreeToLicense yes -mode silent -activationPropertiesFile /home/data/package/matlab/Crack/license_standalone.lic
    

    安装秘钥在破解文件的readme文件中, license根据自己存放的路径

  3. 将破解文件拷贝到目录下

       cp xx/Crack  /usr/local/MATLAB/R2017b/
       sudo cp /usr/local/MATLAB/R2017b/Crack/libmwservices.so /usr/local/MATLAB/R2017b/bin/glnxa64/
    

4.添加acivate.ini

  cd  /usr/local/MATLAB/R2017b
  vi activate.ini
  isSilent=true
  activateCommand=activateOffline
  licenseFile=/usr/local/MATLAB/R2017b/Crack/license_standalone.lic (因为之前把Crack文件拷到了安装目录下了)
  1. 激活MATLAB
/usr/local/MATLAB/R2017b/bin/activate_matlab.sh -propertiesFile /usr/local/MATLAB/R2017b/activate.ini
  1. 添加全局变量

      vi /etc/profile 
      export PATH=/usr/local/MATLAB/R2017b/bin:$PATH
    
  2. 启动MATLAB

      输入matlab,即可启动
    

但是报错了,libXext.so.6: cannot open shared object file:yum install libXext,缺少什么安装什么

    原文作者:Persistently
    原文地址: https://www.jianshu.com/p/a10397fcfb1d
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞