- One or more of the binaries required for installation inside the MATLAB installation folder does not have execute permissions
- Launching the installer without an X11 display configured
- The user that is launching the installer is not able to display windows on this X11 display
- Libraries required for the MATLAB installer are missing
Why do I see "Preparing installation files ... Installing ... Finished..." in the terminal window when running the Installer on Linux, but MATLAB is not installed?
조회 수: 123(최근 30일)
MathWorks Support Team 2021년 3월 10일
편집: MathWorks Support Team 2021년 3월 10일
This issue can be due to several different issues. The most common causes are:
Issue #1: One or more of the binaries required for installation inside the MATLAB installation folder does not have execute permissions
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:
sudo chmod -R 777 matlab_R20XXx_glnxa64
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.
Issue #2: Launching the installer without an X11 display configured
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:
How do I use the Silent Installer for MATLAB?
Issue #3: The user that is launching the installer is not able to display windows on this X11 display
This issue often occurs when launching the installer as root. See the below for more information:
Why can't I install MATLAB with the root account in Linux when the installer works for my user account?https://www.mathworks.com/matlabcentral/answers/133944-why-can-t-i-install-matlab-with-the-root-account-in-linux-when-the-installer-works-for-my-user-accou
Issue #4: Libraries required for the MATLAB installer are missing
MATLAB is fully supported on Desktop installation of Linux. It is not supported on minimal distributions. A minimal installation may not contain all libraries that MATLAB requires.
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.
See the below for a list of qualified distributions:
Nick Warren 2017년 7월 13일
I had the same issue when installing on a remote server. The splash screen would briefly appear, and then abruptly be 'finished'.
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:
$ sudo apt-get install xterm
If xterm produces an X window ok, then the matlab installer should now work.
N/A 2018년 4월 23일
It's pretty curious that the recommendation is not to install as root, but that the default path to install to is /usr/local/MATLAB/R2018a ... which is only writable by root by default. Meanwhile, running with gksu or sudo doesn't do anything for me. The gksu window just sits there but input goes to the console, not gksu.
Can someone just put together a PPA for this? Install & upgrade of matlab on linux is a really miserable experience.
John Miezitis 2018년 7월 24일
In my case I am installing into an HPC environment on Centos 7.5 where you do not want to use desktop environments. I had a basic X11 environment including xterm installed but the installer would not run until package libXtst was installed.
Accpeting the Math Works Team comment that they cannot provide a list of packages for every distribution I believe they could make the process of determining which libraries are missing easier.
I had to find which command was actually being run by running the install scripts with sh -x. I say scripts plural because the first script merely copies some install files to /tmp you then need to sh -x the next script in the chain until you find the executable that redirects output to /dev/null run that without the redirection and you can discover the missing library.
Perhaps the output could be redirected to a log file instead of /dev/null.
Bruno jeanneret 2018년 3월 20일
Curiously the link for the issue #2 references a windows installation ...
On the same linux machine (Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux), the installer of the release 2016a works fine, but the 2017b release won't !
Has anyone tried the 2018a installer ?
Thanks in advance,
Srinath Gunnery 2018년 3월 29일
I had issue_3,solved by typing
printenv | grep DISPLAY, export DISPLAY=:<display value that u received from previous command> xhost + localhost
After installation type
Finally it is done.
Jeff Mandel 2018년 9월 10일
I just spent the day installing Ubuntu 18.04 server on Virtual Box, and then Matlab 2018a on that. I had the same experience as the OP until I installed libxtst6 via apt-get, then everything proceeded smoothly. I suspect that it I had done this on Ubuntu Desktop, the library would have been there. Rather than ranting about what libraries MathWorks should include in the linux distribution, I think having someone spending a day building a better install script that could prompt for the username and password for your account and ask for the path to the license file would make my life easier.
Kendall Barboza 2019년 8월 16일
install: opción inválida -- 'i'
Pruebe 'install --help' para más información.
after doing what is indicated in the installer_input file. Is there another option for try?