sudo install not opening installer (MATLAB 2021b)

조회 수: 61 (최근 30일)
ClaytonA
ClaytonA 2021년 9월 23일
댓글: Pfeiffer Renaud 2022년 8월 29일
I'm on Ubuntu 20.04 trying to install MATLAB 2021b. The install script will not open the installer GUI when run with sudo. After running sudo ./install my terminal freezes like it's stuck in a loop.
Note that the installer GUI does open when ./install is run without sudo. Also, I've recently installed 2021a without problems.
Any thoughts on how I can run the installer as su?
  댓글 수: 1
ClaytonA
ClaytonA 2021년 9월 23일
Looks like the problem is in /bin/glnxa64/MathWorksProductInstaller
It runs fine without sudo, however no GUI opens when run with sudo.
BTW, the MathWorksProductInstaller application didn't exist in R2021A, it used something called install_unix

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

채택된 답변

ClaytonA
ClaytonA 2021년 10월 7일
  1. (run the command : xhost +SI:localuser:root)
  2. sudo ./install
As answered here:
https://www.mathworks.com/matlabcentral/answers/1459909-installer-hang-when-installing-matlab-r2021b-as-root-on-ubuntu-20-04#comment_1759029
  댓글 수: 6
Sepehr Samavi
Sepehr Samavi 2022년 8월 24일
ditto. QA seems absent....
Pfeiffer Renaud
Pfeiffer Renaud 2022년 8월 29일
Great. It works

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

추가 답변 (1개)

Ahmad Sharif
Ahmad Sharif 2022년 2월 2일
Try this
xhost +SI:localuser:root
sudo ./install
  댓글 수: 6
Albert Lyerly
Albert Lyerly 2022년 8월 4일
This installation method was successful for Ubuntu 20.024.3 LTS and Matlab R2022a on Lenvo P73. 8/2022
dhruv khatri
dhruv khatri 2022년 8월 10일
Thank you it worked on Ubuntu 20.04.4 LTS. I had the exact problem before.

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by