How to do MATLAB update, when root owns the install, but isn't the licensed user?

17 ビュー (過去 30 日間)
John
John 2025 年 12 月 2 日 23:44
コメント済み: Star Strider 2025 年 12 月 3 日 3:46
On my personal linux machine, matlab is installed in /usr/local/bin because I'm keeping it separate from /home where backups are frequent.
How to do an update from within matlab? If I run update from a standard matlab session, I do not have permission to write to the install. If I try running as root (e.g. sudo matlab) I'm not the licensed user. Clearly I managed to do the install; what am I missing?

採用された回答

Star Strider
Star Strider 2025 年 12 月 3 日 0:37
I have Ubuntu 24.04, and for R2025b used the approach in this Edit. . After that, I just run the update installer.
It may be necessary to create the necessary paths first (the installer will indicate the paths it needs), then run the installer again with the paths created. That's worked for me in the past.
I'm relatively new to Ubuntu (the only Linux distro I have ever used), and am gradually gaining experience using it with MATLAB installations and updates.
With the procedure I described in that post, I've had no problems with MATLAB installations or updates.
  4 件のコメント
John
John 2025 年 12 月 3 日 2:38
Thanks, that worked.
For the benefit of anyone else who stumbles across this thread, and whose install is owned by root:
  • in 25a, the installer is in ~/.MathWorks/ServiceHost/-mw_shared_installs/v2025.12.1.2/bin/glnxa64
  • if root owns the install, the installer needs to run as root
  • you need to supply the install root as the --destination argument to the installer
  • so, e.g. sudo ./MathWorksUpdateInstaller --destination=/usr/local/MATLAB/R2025a
Finally, as mentioned in the linked thread, the installer will finish by attempting to restart matlab. Which will fail, as root isn't the licensed user. This seems to have no side effects; restarting as the licensed user worked fine.
Star Strider
Star Strider 2025 年 12 月 3 日 3:46
My pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by