sudo ./install on linux silently fails R2022a

16 views (last 30 days)
AFAIK this has been an issue since R2021b (maybe before?)
Running ./install doesn't have the permissions to install to /usr/local/ but running the install script as sudo hangs and fails silently.
To me, this is a pretty serious bug for linux users, I was hoping it would be fixed in this new release. Has this been logged internally at MathWorks?
  1 Comment
David Wilby
David Wilby on 11 Mar 2022
From: https://uk.mathworks.com/matlabcentral/answers/1459909-installer-hang-when-installing-matlab-r2021b-as-root-on-ubuntu-20-04#comment_1759029
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

Sign in to comment.

Accepted Answer

David Wilby
David Wilby on 11 Mar 2022
From: https://uk.mathworks.com/matlabcentral/answers/1459909-installer-hang-when-installing-matlab-r2021b-as-root-on-ubuntu-20-04#comment_1759029
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
  1 Comment
Akila Ganlath
Akila Ganlath on 15 May 2022
confirming the above fix applied to R2022a as well

Sign in to comment.

More Answers (0)

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by