Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When the idea starts, it gives the error "Failed to load module 'canberra-gtk-module'". How should I fix it?

I downloaded the Linux version of idea and unzip it to my /opt/idea-IU-181.5540.7 directory (my system is Ubuntu 18.04 LTS). When I executed./idea.sh on bin, there was an error in the terminal "Failed to load module'canberra-gtk-module'":

slf@slf-pc:/opt/idea-IU-181.5540.7/bin$ ./idea.sh 
Gtk-Message: 17:45:12.518: Failed to load module "canberra-gtk-module"
slf@slf-pc:/opt/idea-IU-181.5540.7/bin$ 

But idea startup is no problem at the moment. Should I fix this error? If it needs to be repaired, how should I repair it?

like image 631
黄昭鸿 Avatar asked Jul 19 '18 16:07

黄昭鸿


2 Answers

Actually you can ignore that message as it doesn't crashes the IDE in any form. If you want to get rid of the message, then run the below command:

sudo apt install libcanberra-gtk0 libcanberra-gtk-module

See the discussion here

After I ran the above command, this error disappeared during any Jetbrains IDE launch.

like image 72
Priyam Avatar answered Nov 10 '22 01:11

Priyam


For a CentOS 7 (7.6) system, I used:

sudo yum install libcanberra-gtk2

and the problem went away. CentOS 7.6 apparently uses gtk3, but the IntelliJ products are looking for the gtk2 modules.

like image 39
DeanM Avatar answered Nov 10 '22 03:11

DeanM