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

조회 수: 226(최근 30일)
MathWorks Support Team
MathWorks Support Team 2015년 7월 14일
댓글: Qi Li 2022년 5월 22일
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 Support Team
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:
  1. One or more of the binaries required for installation inside the MATLAB installation folder does not have execute permissions
  2. Launching the installer without an X11 display configured
  3. The user that is launching the installer is not able to display windows on this X11 display
  4. Libraries required for the MATLAB installer are missing
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:
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:
  댓글 수: 3
Mahmod Karndash
Mahmod Karndash 2022년 4월 23일
i have ubuntu16.04 on windows and i want to install matlab r2018a in ubuntu but i can not please help .
root@DESKTOP-SMROJT0:/mnt/d/R2018a# ls
activate.ini install licenses ui
archives installer_input.txt patents.txt version.txt
bin install_guide.pdf readme.txt
etc java sys
help license_agreement.txt trademarks.txt
root@DESKTOP-SMROJT0:/mnt/d/R2018a# sudo ./install
Preparing installation files ...
Installing ...
Finished
root@DESKTOP-SMROJT0:/mnt/d/R2018a#
the installer does not launch and MATLAB is not installed ........please
please help

댓글을 달려면 로그인하십시오.

추가 답변(11개)

Lingyu YUE
Lingyu YUE 2019년 7월 2일
You can try type:
xhost +SI:localuser:root
before sudo ./install
  댓글 수: 19

댓글을 달려면 로그인하십시오.


Nick Warren
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
$ xterm
If xterm produces an X window ok, then the matlab installer should now work.

Emiliano Heyns
Emiliano Heyns 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.
  댓글 수: 1
James Hill
James Hill 2018년 6월 6일
My experience is opposite. I would recommend installing as root. I do not think it is terrible at all. If you use a rolling release or a snapshot release Linux these are going to be part of your MATLAB/LINUX life cycle. I am in the same boat.
I went on a rant in this space...and deleted it.
Please log on as root (Pop!_OS does not give you a root); MATLAB has mostly worked out of the box for me. I am slowing working through all the openSUSE Tumbleweed and MATLAB disagreements...
James

댓글을 달려면 로그인하십시오.


John Miezitis
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.
  댓글 수: 3
Shijia Geng
Shijia Geng 2020년 2월 1일
Thanks. It solves my problem as well. It turns out that xterm is not neccessary.

댓글을 달려면 로그인하십시오.


Tom Engels
Tom Engels 2022년 1월 31일
편집: Tom Engels 2022년 1월 31일
It worked for me in Ubuntu when I ran the installation as superuser.
Open Terminal:
sudo -s --> "Insert the password" --> cd PATH_TO_DIC --> sudo .\install

Bruno jeanneret
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,
  댓글 수: 2
Arthur Kenton
Arthur Kenton 2018년 3월 25일
2018a installer worked fine..
/usr/local/MATLAB/R2018a$
but Matlab won't start...
crash dump file..
Ubuntu 16.04
--------------------------------------------------------------------------------
Segmentation violation detected at Sun Mar 25 14:46:43 2018 -0500
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
GNU C Library : 2.23 stable
MATLAB Architecture : glnxa64
MATLAB Root : /usr/local/MATLAB/R2018a
MATLAB Version : 9.4.0.813654 (R2018a)
Operating System : Ubuntu 16.04.4 LTS
Process ID : 28692
Processor ID : x86 Family 31 Model 2 Stepping 2, AuthenticAMD
Session Key : b6ed3445-80e2-4e1e-bcaf-cb48f29dc012
Static TLS mitigation : Disabled: Cannot load X11
Fault Count: 1
... any help appreciated... the DISPLAY fix noted didn't seem to work work..

댓글을 달려면 로그인하십시오.


Srinath Gunnery
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
xhost -
Finally it is done.

Abdellatif Machti
Abdellatif Machti 2018년 4월 11일
i tried just ./install it works for me ;)
  댓글 수: 1
Abdellatif Machti
Abdellatif Machti 2018년 4월 11일
please forgive me. the right solution is so: Terminal: printenv | grep DISPLAY su export DISPLAY=:0 xhost + xhost - localhost sudo ./install ;enjoy

댓글을 달려면 로그인하십시오.


Jeff Mandel
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
Kendall Barboza 2019년 8월 16일
I got:
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?

Fernando Perez
Fernando Perez 2019년 10월 1일
Heeelp, I have the same problem but nothing works, however I'm trying to install matlab 2019 on kubuntu 18.
  댓글 수: 3
Mahmod Karndash
Mahmod Karndash 2022년 4월 23일
i have ubuntu16.04 on windows and i want to install matlab r2018a in ubuntu but i can not please help .
root@DESKTOP-SMROJT0:/mnt/d/R2018a# ls
activate.ini install licenses ui
archives installer_input.txt patents.txt version.txt
bin install_guide.pdf readme.txt
etc java sys
help license_agreement.txt trademarks.txt
root@DESKTOP-SMROJT0:/mnt/d/R2018a# sudo ./install
Preparing installation files ...
Installing ...
Finished
root@DESKTOP-SMROJT0:/mnt/d/R2018a#
the installer does not launch and MATLAB is not installed, please help

댓글을 달려면 로그인하십시오.

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by