Is there a way to install MATLAB without launching a window as root?

44 ビュー (過去 30 日間)
Josh G.
Josh G. 2021 年 3 月 17 日
回答済み: Rashed Mohammed 2021 年 3 月 22 日
Every time I install a new version of Matlab, I wince as I launch the installer as root. Running graphical applications as root is a serious security vulnerability. But if I try to run the installer as my normal user, I get an error when I get to the installation step saying the installer can't write to the selected location (the usual /usr/local/MATLAB directory).
Is there a way to install Matlab without running the graphical installer as root? Is there a non-graphical install method?

回答 (1 件)

Rashed Mohammed
Rashed Mohammed 2021 年 3 月 22 日
Hi Josh
MATLAB installer needs to be launched as root only if the installer has to write/modify files which only a root user can access such as /usr/local/MATLAB and /usr/local/bin. If you specify a destination folder which a non-root user has access to and do not want MATLAB installer to automatically create symlinks, then launching MATLAB installer as non-root user is sufficient to install MATLAB.
However, if you wish to perform a non-graphical installation, I would suggest you to go through Install Noninteractively documention page. Please note that this process requires you to access File Installation Key from your MathWorks account license page.
Hope this helps

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by