MATLAB R2022a Ubuntu/linux errors: failed to load module

31 次查看(过去 30 天)
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.

回答(1 个)

Abhijeet
Abhijeet 2023-9-4
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 个评论
TGB
TGB 2023-9-4
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 2023-9-5
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

请先登录,再进行评论。

类别

Help CenterFile 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!

Translated by