MATLAB R2022a Ubuntu/linux errors: failed to load module

32 ビュー (過去 30 日間)
TGB
TGB 2023 年 8 月 30 日
コメント済み: Abhijeet 2023 年 9 月 5 日
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 Center および File ExchangeDownloads についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by