Using the installer returns std::runtime_error (Linux Mint 22)
116 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I get the following error message when running the installer:
terminate called after throwing an instance of 'std::runtime_error'
what(): Failed to launch web window with error: Unable to launch the MATLABWindow application. The exit code was: 262
This thread reports the same error and suggests to install libXss1 and libgconf-2-4, but it didn't help.
Thanks for your help
0 Commenti
Risposte (2)
UDAYA PEDDIRAJU
il 4 Ott 2024
Hey Andros,
I faced the same issue, but going through this helped me: https://www.mathworks.com/matlabcentral/answers/513449-what-unable-to-launch-the-matlabwindow-application-during-installation
Summary:
The error you're encountering when running the MATLAB installer on Linux Mint 22 may be due to missing libraries or compatibility issues.
Install Required Libraries: Ensure that you have the necessary libraries installed. You can try installing the following packages:
sudo apt-get install libxss1 libgconf-2-4 libgtk-3-0
Check for Other Dependencies: Sometimes, additional libraries may be required. You can check for any missing dependencies using:
sudo apt-get install libglib2.0-0 libnss3
Run Installer with Terminal: Try running the installer from the terminal to see if there are any additional error messages that can provide more context:
cd /path/to/installer
sudo ./install
Check Permissions: Ensure that you have the necessary permissions to execute the installer. You can change the permissions using: this is the most possible cause.
chmod +x install
Update Your System: Make sure your system is up to date, as outdated packages can sometimes cause issues:
sudo apt-get update
sudo apt-get upgrade
Let me know if you're able to get rid of this
5 Commenti
stevenh
il 12 Gen 2025 alle 15:36
Modificato: stevenh
il 12 Gen 2025 alle 15:36
Update#2:
Matlab is able to start up but when I try to start Simulink the following error shows up in the matlab command window:
Caught "std::exception" Exception message is:
Failed to load bundle #471: /usr/local/MATLAB/R2022a/bin/glnxa64/libmwdastudio.so
Another user mentioned installing the Matlab runtime might fix the issue, so I installed Matlab version 9.12 located at https://www.mathworks.com/products/compiler/matlab-runtime.html and installed it with the directions located at https://www.mathworks.com/help/compiler/install-the-matlab-runtime.html.
I am still getting the same error. It seems each matlab version is made for a specific linux distribution.
Does anyone else have any suggestions?
stevenh
il 12 Gen 2025 alle 15:54
I fixed the issue!
The fix described in that post didn't work until I removed the Matlab runtime by renaming the runtime folder to MATLAB_Runtime_removed.
stevenh
il 12 Gen 2025 alle 17:34
Modificato: stevenh
il 12 Gen 2025 alle 23:00
Please read my comments shown above (They are summarized below). Hopefully it solves most people's issue with using Matlab 2022 or other versions of Matlab with Linux Mint 22.
It would be best to make sure your linux distribution is up to date first before making any changes. Prior to performing the steps shown below, I re-installed Linux Mint 22 (Cinnamon Edition) and performed an update using the update manager.
Follow these steps:
- Do what YU-KUAN's post mentions at https://www.mathworks.com/matlabcentral/answers/2150489-why-am-i-getting-an-error-installing-matlab-on-ubuntu-24-04. I only did step 3: Create a directory named exclude in the installation folder's /bin/glnxa64 directory and then remove all ./bin/glnxa64/libstdc++* ./sys/os/glnxa64/libstdc++* ./sys/os/glnxa64/libgcc* by moving them to the exclude directory.
- Do what Rob Campbell's post mentions at https://www.mathworks.com/matlabcentral/answers/2150489-why-am-i-getting-an-error-installing-matlab-on-ubuntu-24-04: move libfreetype.so.6* to the exclude directory, i.e. in the matlab instalation directory: sudo mv ./bin/glnxa64/libfreetype.so.6* ./exclude
- Execute the command "xhost +SI:localuser:root" as mentioned by Markus Simon at https://www.mathworks.com/matlabcentral/answers/1705340-matlab-2022a-install-script-on-linux-doesn-t-work and then run the matlab installation program: sudo ./install. After the installation execute xhost -SI:localuser:root
- Fix Failed to load bundle #471: /usr/local/MATLAB/R2022a/bin/glnxa64/libmwdastudio.so issue: https://www.mathworks.com/matlabcentral/answers/506092-can-t-reload-usr-local-matlab-r2018a-bin-glnxa64-libmwdastudio-so,: Create a directory named exclude at $MATLAB/bin/glnxa64 and do sudo mv $MATLAB/bin/glnxa64/libfreetype.so* ./exclude. $MATLAB wasn't defined on my computer so I just peformed the operations in the /usr/local/MATLAB/R2022a/bin/glnxa64 directory.
0 Commenti
Vedere anche
Categorie
Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!