I am running Ubuntu 18.04.3 LTS and when I launch MATLAB R2019b I get the following error:
Gtk-Message: 00:20:10.283: Failed to load module "canberra-gtk-module" [0921/002013.995543:INFO:context.cpp(159)] Using multi-threaded message loop for Linux
I read this thread: Failed to load module “canberra-gtk-module” .... but already installed
but wasn't able to resolve the issue. Matlab launches and then it functions well but I would like to solve this error. Any ideas would be appreciated.
Issue is solved following any of the above procedures (or both):
sudo apt-get install libcanberra-gtk-module
https://www.mathworks.com/support/bugreports/details/1995075
export GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0
https://www.mathworks.com/matlabcentral/answers/479778-gtk-message-16-17-51-771-failed-to-load-module-canberra-gtk-module#answer_437063
Note that you have to export the GTK_PATH
just before every time you launch MATLAB. In order to avoid this, edit the /.bashrc
file by opening a terminal and running the command sudo ~/.bashrc
. And add the above export line to the end of the file. Save and quit, exit terminal, relaunch terminal and run MATLAB. It should work fine for every time.
First way installs the required packages and the second way exports the requires environment variable in order for the module to load when launhing MATLAB. Both links provide information for other linux distributions except UBUNTU. Question was asked when I was running Ubuntu 18.04 LTS while currently I am running Ubuntu 20.04 LTS yet I suppose the solutions remain the same.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments