• Linux下安装MATLAB


    Why do I see "Preparing installation files ... Installing ... Finished..." in the terminal window when running the Installer on Linux, but MATLAB is not installed?

    出现问题如下:

    When running the Installer on Linux, I see the below in terminal:

    Preparing installation files ...
    Installing ...
    Finished.
    

    However, the installer does not launch and MATLAB is not installed.

    本文摘取mathworks中一些大牛的回答。

    解决方案一:

     1 This issue can be due to several different issues. The most common causes are:
     2 
     3 One or more of the binaries required for installation inside the MATLAB installation folder does not have execute permissions
     4 Launching the installer without an X11 display configured
     5 The user that is launching the installer is not able to display windows on this X11 display
     6 Libraries required for the MATLAB installer are missing
     7 Issue #1: One or more of the binaries required for installation inside the MATLAB installation folder does not have execute permissions
     8 
     9 To resolve this issue, grant execute permission to the entire MATLAB installer folder by running this command from the folder which contains the installer folder:
    10 
    11 sudo chmod -R 777 matlab_R20XXx_glnxa64 
    12 ​You must be part of the sudoers/wheel group to run this command and will be prompted for your password. We do not recommend installing as root.
    13 
    14 Issue #2: Launching the installer without an X11 display configured
    15 
    16 Launching the MATLAB installer on a machine without an X11 display will fail unless you configure the installer to run silently. To install MATLAB without an X11 display, see the below related article:
    17 
    18 How do I use the Silent Installer for MATLAB?
    19 
    20 http://www.mathworks.com/matlabcentral/answers/98137
    21 
    22 Issue #3: The user that is launching the installer is not able to display windows on this X11 display
    23 
    24 This issue often occurs when launching the installer as root. See the below for more information:
    25 
    26 Why can't I install MATLAB with the root account in Linux when the installer works for my user account?
    27 
    28 http://www.mathworks.com/matlabcentral/answers/133944
    29 
    30 Issue #4: Libraries required for the MATLAB installer are missing
    31 
    32 MATLAB is fully supported on Desktop installation of Linux. It is not supported on minimal or server distributions. A minimal installation may not contain all libraries that MATLAB requires.
    33 
    34 Even if you intend to run MATLAB only in non-graphical mode, MATLAB requires some X11 libraries to run. Unfortunately, we are not able to specify the X11 requirements down to the exact set of packages required because different distributions may package the libraries differently. MATLAB will work out of the box on desktop installations of any supported distribution.
    35 
    36 See the below for a list of qualified distributions:
    37 
    38 http://www.mathworks.com/support/sysreq/current_release/index.html?sec=linux

    解决方案二:

    1 I had the same issue when installing on a remote server. The splash screen would briefly appear, and then abruptly be 'finished'.
    2 
    3 Turns out there was some missing packages required for X11, even though the splash screen was displayed remotely (however briefly). I resolved this by installing xterm, which caused the missing packages to be installed also:
    4 
    5 $ sudo apt-get install xterm
    6 $ xterm
    7 If xterm produces an X window ok, then the matlab installer should now work.
  • 相关阅读:
    Django——缓存
    Django——中间件设置缓存
    Django——photo
    Django——权限
    ONVIF Event消息解析(How to work with gSoap)
    当OOP语言RAII特性发展到functional形式的极致
    探讨符号式未来,函数式语言//冒号说明法
    JavaScript 目标装配式编程(Target Assemble Programming)
    When Colon Scripting is comming(JavaScript语法扩充)
    When Colon Scripting is comming (脚本最佳体验)
  • 原文地址:https://www.cnblogs.com/wt869054461/p/9046300.html
Copyright © 2020-2023  润新知