Installer hang when installing Matlab R2021b as root on Ubuntu 20.04

My operating system is Ubuntu 20.04 LTS. I must install Matalb as root, and always have done. This is historic as all specialist programs are installed in /opt.
I have now downloaded MATLAB R2021b and the Installer hang when installing Matlab R2021b as root on Ubuntu 20.04, the command sudo ./install just hangs with a blinking cursor, no Matlab install GUI is displayed.
As first attempted solution I have created a MATLAB/R2021b folder in /opt, that did not help.
I have also tried to install R2021b normally with defaults but although now I progress nicely to the Matlab GUI, but the default location /usr/local/MATLAB/R2021b cannot created/located and then I have to aboard.
I have always had to install MATLAB as root.
Any advice on getting the MATLAB install GUI to display on Ubuntu R2021b will be appreciated.
Thank you

16 Commenti

I’m having the exact same issue. Ubuntu 20.04 , Matlab R2021b installer hangs after running sudo ./install
I'm also having this issue. Ubuntu 20.04.
I have been advised by Matlab Support "This appears to be an issue with MATLAB R2021b under root not being able to access the X Server". Workaround is to run the following command
xhost +SI:localuser:root
./install works without the sudo, but you are unable to reach the Matlab folder I created /usr/local/MATLAB/R2021b. This is obvious since I did not use root access.
The solution suggested by Step works. Run the command and then run sudo ./install.
Was having issue with this too, solution worked.
It seems to be working for me now!
It also works on R2022a! Awesome!
Can confirm works without issues with R2022a on Manjaro. Thank you very much!
Resolveu meu problema muito obrigado!
works on ubuntu 22.04 as well, thanks.
I get this problem, installing R2022b But anthing solve my “product installer down” problem
I worked my way around this problem, but got stopped at the next turn for R2022b.
Hey guys! After I did the solution given by Step, I still get a message that says not found. Any solution for that?

Accedi per commentare.

 Risposta accettata

this tip:
(run the command : xhost +SI:localuser:root)
and after
sudo ./install
worked for me (matlab 21b and ubuntu 20.04)

20 Commenti

I tried this fix and it works. Ubuntu 20.04.2. R2021b.
it did not work for ubunto 18
Tried this on Ubuntu 20.04 and it worked! This should be added to the install instructions. I wasted too much time trying to track down the problem.
I had the same problem, tried this solution on Ubuntu 20.04 and it worked. Thank you!
I also had the same problem on Ubuntu 20.04. Currently, it is working. Thank you!
It worked for me too thanks. But how do I get the short cut on the desktop please?
Yes, it worked so smoothly. Thank you so much for your help.
Thanks for functional workaround! I spent a lot of time trying to solve this problem ... :(
Worked for me on Ubuntu 20.04 - Matlab R2021b
Worked for me too on Ubuntu 20.04 - Matlab R2021b
Its of great help I tried to install but getting access issue
and what if i wish to install matlab on a system without a display/x server?
Thanks! This worked for me on Ubuntu 20.04 & Matlab 2021b after a fresh installation.
Thanks. It worked for me on Ubuntu 20.04 with Matlab 2022a
Thanks. It works for me on Ubuntu 22.04 LTS with Matlab R2022a
Thank you! It works for me in Ubuntu 20.04.4 LTS and Matlab R2022a.
Adnan
Adnan il 14 Set 2022
Modificato: Adnan il 14 Set 2022
For anyone wondering what's going on: Askubuntu xserver

Accedi per commentare.

Più risposte (3)

Daniel Brennan
Daniel Brennan il 12 Nov 2023
Modificato: Daniel Brennan il 12 Nov 2023
I encountered the same problem with the installer hanging and unresponsive on a gentoo variant linux OS. For me the problem was related to incompatibilities with the system installed libsqlite3.so.0 library.
I discovered the problem by manually running the <installer_dir>/bin/glnxa64/MATLABWindow in a terminal. Running MATLABWindow manually resulted in the following error message echoed in the terminal:
libsqlite3.so.0: Undefined Symbol: ubrk_open
This error is due to an incompatibility with the system libsqlite3.so.0 library support for icu (Internationalization Components for Unicode) and the Matlab installer. The matlab installer apparently requires dev-libs/icu v69 or later. My system has v67.
The solution is to force the installer to use Matlab's builtin libicu support. For a source based distro simply recompile sqllite without icu support. On a binary distro, you may be able to temproarily remove the executable bit (chmod -x) on the icu libs in your system library directory, install matlab, and then restore the executable bit back on the icu libs after installation.

1 Commento

Running:
ldd <installer-dir>/bin/glnxa64/MATLABWindow
will identify what shared libraries are being used and help identify any problematic libraries.

Accedi per commentare.

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by