MATLAB R2022a Ubuntu/linux errors: failed to load module

29 vues (au cours des 30 derniers jours)
TGB
TGB le 30 Août 2023
Commenté : Abhijeet le 5 Sep 2023
Thanks in advance for suggestions.
I recently ran a nested for loop in which MATLAB crashed and so I force ended MATLAB so I can restart.
Upon restarting MATLAB through a terminal, the following errors appear:
failed to load module "canberra-gtk-module"
failed to load module "gail"
failed to load module "atk-bridge"
MATLAB can run without these it seems however it seems far slower to do so. I would like to find a solution such that these errors are corrected.

Réponses (1)

Abhijeet
Abhijeet le 4 Sep 2023
Hi TGB,
I can understand that you are facing import issue for the following modules:
  • canberra-gtk-module
  • gail
  • atk-bridge
To resolve this issue, I suggest you to run the following command in the terminal:
# For installing latest software updates
sudo apt-get update
sudo apt-get upgrade
# For installing modules
sudo apt install libgail-3-0 libatk-bridge2.0-0 libcanberra-gtk-module
I hope this information was helpful.
  2 commentaires
TGB
TGB le 4 Sep 2023
Hi Abhijeet,
Thank you for your suggestion.
I tried the commands you requested and restarted the PC, however upon opening MATLAB I still get the same issue.
Do you have any further suggestions please?
Many thanks.
Abhijeet
Abhijeet le 5 Sep 2023
Hi TGB
Possible reason on why error still persists can be because MATLAB may be unable to find the modules.
It might be that the library loader looked in several locations for "libcanberra-gtk-module.so" and "libpk-gtk-module.so" but not in the correct location of /usr/lib64/gtk-2.0/modules/.
Please try the following command to read the module in the correct location.
$ env LD_LIBRARY_PATH=/usr/lib64/gtk-2.0/modules matlab

Connectez-vous pour commenter.

Catégories

En savoir plus sur Downloads dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by