MATLAB Answers

Gtk-Message: 10:32:31.466: Failed to load module "canberra-gtk-module"

714 ビュー (過去 30 日間)
Xiao Wang
Xiao Wang 2019 年 7 月 17 日
Edited: LeChat 2020 年 1 月 16 日 22:41
I installed matlab 2019a with update3 on ubuntu 16.04 64bit. When I run matlab, I got output: Gtk-Message: 10:32:31.466: Failed to load module "canberra-gtk-module".
How to sort this problem.
Thanks in advance.

  1 件のコメント

Rica Constantinescu
Rica Constantinescu 2019 年 7 月 20 日
sudo apt-get install libcanberra-gtk*

サインイン to comment.

件の回答 (8)

Scott Minkin
Scott Minkin 2019 年 12 月 15 日
編集済み: Scott Minkin 2019 年 12 月 15 日
I believe the canberra-gtk-module messages have no detrimental effect on MATLAB and can be ignored, but having said that...
To run MATLAB R2019a or R2019b on Ubuntu 16.04 LTS without the canberra-gtk-message:
You have three environmental variables that need to be set before running matlab
export GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0
export LIBOVERLAY_SCROLLBAR=0
export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules
OR you can run matlab in the bash shell by typing:
$ GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0 LIBOVERLAY_SCROLLBAR=0 GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules /usr/local/MATLAB/R2019a/bin/matlab
----
To run R2019a on Ubuntu 18.04 LTS without the canberra-gtk-message:
You need to install libcanberra-gtk-module and libgconf-2-4
You don't need to set any environmental variables.
----
To run R2019b on Ubuntu 18.04 LTS without the canberra-gtk-message:
you need to install libcanberra-gtk-module
You have one environmental variable that needs to be set before running matlab:
export GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0
OR you can run matlab in the bash shell by typing:
$ GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0 /usr/local/MATLAB/R2019b/bin/matlab
Good luck.

  0 件のコメント

サインイン to comment.


Xiao Wang
Xiao Wang 2019 年 7 月 18 日
I did: sudo apt-get install libcanberra-gtk-module libcanberra-gtk0. But the error message is still there.

  1 件のコメント

Pedro Tareco
Pedro Tareco 2019 年 11 月 12 日
This solved it for me. Thanks!

サインイン to comment.


Jan Studnicka
Jan Studnicka 2019 年 10 月 16 日
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"
and/or
Gtk-Message: <timestamp>: Failed to load module "pk-gtk-module"
This message is informational and has no effect on MATLAB."

  0 件のコメント

サインイン to comment.


Chen Wang
Chen Wang 2019 年 10 月 12 日
I have encountered the same problem....

  1 件のコメント

Chen Wang
Chen Wang 2019 年 10 月 12 日
I have installed everything but the problem is still there.

サインイン to comment.


Chen Wang
Chen Wang 2019 年 10 月 12 日
Finally I solve this problem by change from 2019b to 2019a. The error message disappear. There must be something wrong with 2019b's Linux version.

  0 件のコメント

サインイン to comment.


Alex Pedcenko
Alex Pedcenko 2019 年 11 月 28 日
this is not the "problem"

  0 件のコメント

サインイン to comment.


Frederico Azevedo
Frederico Azevedo 2019 年 12 月 14 日
I had the same error with my R2019b installation in ubuntu 19.10. After I installed the module with "sudo apt install libcanberra-gtk-module -y", if I call matlab from the command line with the cmd "LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0/modules:$LD_LIBRARY_PATH /usr/local/bin/matlab", the error message doesn't appear anymore.

  0 件のコメント

サインイン to comment.


LeChat
LeChat 2020 年 1 月 16 日 22:37
編集済み: LeChat 2020 年 1 月 16 日 22:41
It had the same message and then I followed @Scott Minkin recommandation and I still have a message, but a different one:
me@myPC:~$ matlab &
[1] 22115
me@myPC:~$ Gtk-Message: 17:29:07.572: Failed to load module "canberra-gtk-module"
[0116/172911.622390:INFO:context.cpp(159)] Using multi-threaded message loop for Linux
me@myPC:~$ export GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0
[1]+ Done matlab
me@myPC:~$ matlab &
[1] 29896
me@myPC:~$ [0116/173302.576327:INFO:context.cpp(159)] Using multi-threaded message loop for Linux
I then tried this:
me@myPC:~$ sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcanberra-gtk3-module is already the newest version (0.30-7ubuntu1).
libcanberra-gtk-module is already the newest version (0.30-7ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
me@myPC:~$ matlab &
[2] 7532
me@myPC:~$ [0116/173838.654136:INFO:context.cpp(159)] Using multi-threaded message loop for Linux
In both case Matlab 2019b is launched as expected but I am wondering if everything is ok because of the messages I keep having in the Terminal.
I am running Ubuntu 19.10. Thank you for your expertise.

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。

タグ


Translated by