필터 지우기
필터 지우기

MATLAB R2022a Ubuntu/linux errors: failed to load module

조회 수: 31 (최근 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 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