Toolbox installation going wrong - linux
조회 수: 129 (최근 30일)
이전 댓글 표시
I am using the newest release 2025a on a linux computer. I want to install the Statistics and Machine Learning Toolbox which is included in my license. In general the installation process is simple - i open the add-on explorer, find the toolbox and click install. Then a window pops up, that the toolbox will be installed, matlab will be closed and restarted once complete. Matlab closes but never restarts, if i start it again the toolbox is missing.
What can I do ?
댓글 수: 3
Davide
2025년 7월 11일
I am having the same problem (Ubuntu 24.04.2 LTS), still didn't find a way to solve it
답변 (4개)
Mahboob
2025년 8월 13일
Run matlab by sudo so that it can run the installer after closing.
댓글 수: 2
JOSHUA RAPHAEL
2025년 11월 13일
Not working for me :/
Can you provide some sources on why runnng with sudo could help?
Thanks a lot!
Mahboob
2025년 11월 13일
편집: Mahboob
2025년 11월 13일
Well, in depends on where you installed your matlab, and if even used sudo to run the initial installer setup. For example, if you installed it in /usr/local/MATLAB/<VERSION> then this directory is not writable by normal user, and therefore, if you ran matlab without sudo, then the updater or module installer won't be able to write files on the sub directories of /usr/local/MATLAB/<VERSION>.
Rahul Gulia
2025년 9월 6일
Open a terminal and run:
sudo matlab
Then, start installing your Add-Ons. Hope this helps.
댓글 수: 3
JOSHUA RAPHAEL
2025년 11월 13일
편집: JOSHUA RAPHAEL
2025년 11월 13일
Same here, matlab crashes when trying to run with sudo :(
I get the following output:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QXcbGlxIntegration::initialize
Xcb GLX gl-integration successfully initialized
qt.xkb.compose: failed to create compose table
Unable to launch MVM server: License Error: Licensing shutdown
JOSHUA RAPHAEL
2025년 11월 13일
편집: JOSHUA RAPHAEL
2025년 11월 13일
Managed to run matlab with sudo by using sudo -u myUserName matlab, but that didn't solve the issue.
Also tried sudo -u UserName matlab &, but still no success:/
Ivy
2025년 11월 14일
Hello,
The reason why MATLAB just closes itself without opening is because it tries to install, and I assume you have installed MATLAB in a sudo-required location, it can't write to this location and never opens up again.
Launching MATLAB with sudo is only recommended if you have a university/startup license.
What you can do is to either run the installer, or MPM.
https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/MPM.md#install-matlab-and-specify-installation-options
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!