sudo ./install doesn't start on Linux

I've downloaded zip file of MATLAB R2021b for linux and when i tried to use the command sudo ./install nothing happen, i've tried with sudo sh ./install but nothing. Terminal give me no messages and i don't know what to do but i need matlab on my pc. It seems like the file named install doesn't work, how can i solve?

댓글 수: 4

Rik
Rik 2021년 10월 9일
This issue seems to be specific to R2021b. I have seen a suggested solution in another thread, but it is hard to track down on mobile.
What you can do is to run it as a normal user. You will need chown for the install directory (don't forget to change owner back to root when you're done).
mat teo
mat teo 2021년 11월 2일
@Rik this solved it for me , thank you very much
@Rik this worked for me too, thanks!
Piero Mana
Piero Mana 2022년 8월 18일
편집: Piero Mana 2022년 8월 18일
Same problem for me with Matlab 2022a (on Ubuntu 20.04LTS). This is a bug, an installer should work smoothly without requiring the user to go searching for fixes on the internet (unless Matlab wishes people to use Octave instead ;)

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

답변 (6개)

Riccardo Scorretti
Riccardo Scorretti 2022년 3월 23일

10 개 추천

This question has been solved here:
In short, it is mandatory to enable root to access the X server:
xhost +SI:localuser:root
sudo ./install
This worked on my PC (Ubuntu 20.04).
Best regards

댓글 수: 3

Keane Gonzalez
Keane Gonzalez 2022년 4월 27일
This worked perfectly.
usman ali
usman ali 2022년 5월 18일
it worked on ubuntu 22.04 too
Tianyu Yang
Tianyu Yang 2022년 5월 28일
Thank you, works indeed for 22.04 : )

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

Arthur Mingasson
Arthur Mingasson 2022년 1월 24일
편집: Arthur Mingasson 2022년 1월 24일

1 개 추천

Encountered the same issue with 2021b on ubuntu 20.04
  • What workded for me was to first ./install it without sudo in my home folder
  • sudo mv the full folder into /usr/local/
  • And finally create myself the symlink in /usr/bin/.

댓글 수: 3

Jens Geisler
Jens Geisler 2022년 1월 28일
Probably a viable and painless solution. Otherwise to make sudo ./install work see here: https://de.mathworks.com/matlabcentral/answers/1463349-ubuntu-the-sudo-install-does-not-work-for-matlab#answer_869355
Pol Adillon
Pol Adillon 2022년 3월 1일
can anyone explain how to creat a symlink in /usr/bin/?
Thanks
Steven Wolf
Steven Wolf 2022년 3월 2일
I guess this works. This qualifies (in my mind, anyway) as a bug in the installer. It does have a drawback as well. As near as I can tell, you must decide, upon initial installation, what packages/add-ons that you want. If you want to add-in a new package, you'd have to move the installation back to a location that is writable by the user, or entirely re-install matlab.
@Pol Adillon to create a symlink, you should be able to do the usual thing, ln -s <source file> <link location>, so something like, ln -s /usr/local/MATLAB/R2021b/bin/matlab /usr/bin/matlab should create a link to your matlab executable. You probably need sudo privileges to write the link to /usr/bin, so you'll need to append that to the beginning of the link command.

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

Tanmay Das
Tanmay Das 2021년 10월 12일

0 개 추천

Hi,
To my understanding, you are not able to launch MATLAB R2021b in your linux terminal. The most likely reason is that you do not have permissions to one or more of the files in the installation folder. A similar question has been answered previously the link to which has been attached below. It might help you resolve your issue.

댓글 수: 1

I could not install 2021b, but could install 2020b without any setting changes. It seems there is a bug in the installer.

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

David Wilby
David Wilby 2021년 11월 17일

0 개 추천

I'm also having this issue on ubuntu linux 18.04 with R2021b. This seems like quite a critical failure for Linux users. Are there any plans to fix this bug in the installer?

댓글 수: 5

It's broken for me too!
Péter Fiala
Péter Fiala 2021년 12월 12일
The same issue with me
Andrew Sinnott
Andrew Sinnott 2022년 1월 10일
I'm having the same issue
Robert Kirkby
Robert Kirkby 2022년 1월 19일
편집: Robert Kirkby 2022년 1월 19일
Same problem with R2021b on Kubuntu 20.10:
./install runs fine but obviously can't install to /usr/local/ as don't have access privelidges
sudo ./install the gui never appears (nothing happens, the command line claims to be running the installer when I quit it)
(can install R2021a just fine)
Andrew Sinnott
Andrew Sinnott 2022년 1월 24일
Yep 2021a works fine for me, but even with privileges enabled 2021b won't install

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

Oren Schneorson
Oren Schneorson 2022년 4월 7일

0 개 추천

Change permissions on the MATLAB folder:
sudo chmod a+rwx /usr/local/MATLAB
After install change it back if you so wish.
Daniel Tholen
Daniel Tholen 2023년 7월 6일

0 개 추천

None of the advise presented in these (and similar threads) worked for me.
What did work is the excellent mpm tool on github (i.e. not using the installer at all), but it requires some manual configuration.
I'll add that it is a bit sad that the Matlab installer thinks it is so good, it doesn't need to report errors but just hangs and even ignores a TERM signal. Doesn't insipre confidence!

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2021년 10월 9일

답변:

2023년 7월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by