Gtk-Message: 16:17:51.771: Failed to load module "canberra-gtk-module"

108 visualizzazioni (ultimi 30 giorni)
To whom it may concern,
when I run ./matlab on linux UBUNTU 18.4 LTS an error occours
Gtk-Message: 16:17:51.771: Failed to load module "canberra-gtk-module"
How can I solve this problem?
I hop hearing from you,
  3 Commenti
Chen Wang
Chen Wang il 12 Ott 2019
I have installed everything these answers recommend. However, the problem is still there.

Accedi per commentare.

Risposta accettata

reincornator il 17 Giu 2020
Modificato: reincornator il 17 Giu 2020
You must install:
sudo apt-get install packagekit-gtk3-module
sudo apt-get install libcanberra-gtk-module

Più risposte (2)

Jan Studnicka
Jan Studnicka il 16 Ott 2019
See bug reports:
"On some Linux distributions, a message appears in the terminal window when starting MATLAB:
Gtk-Message: <timestamp>: Failed to load module "canberra-gtk-module"
Gtk-Message: <timestamp>: Failed to load module "pk-gtk-module"
This message is informational and has no effect on MATLAB."
  2 Commenti
Jan Studnicka
Jan Studnicka il 16 Ott 2019
Your problem can be caused by something different. In my case this message appears and MATLAB starts normally.
I suggest you contact support:

Accedi per commentare.

Brian Zelenke
Brian Zelenke il 23 Mag 2020
On Ubuntu this would be:
export GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0
On RedHat (RHEL) this would be:
export GTK_PATH=/usr/lib64/gtk-2.0/
  2 Commenti
Mark Thomas
Mark Thomas il 30 Lug 2021
This is the only change needed for MATLAB R2020a (Update 1 and Update 6) on CentOS 6.6 [yes, I know!]:
No need to play around with GTK 3.
Just add an /etc/profile.d/ script, setting:
export GTK_PATH
This lets MATLAB find the /usr/lib64/gtk-2.0/modules directory, which holds both modules.
BTW: I found the "R2020a_Update_1_Linux.iso" graphical installer would not run, so had to use ./install -inputFile <name> to do a scripted install. (The GUI opened OK, got to the "Enter File Installation Key" page but would not let me type into the FIK box or press the [Next] button.)
Applying this fix before running ./install might let the graphical installer run, too.

Accedi per commentare.


Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by