使用locate命令解决matlab2020a的Failed to load module "canberra-gtk-module"的提示信息

  在使用matlab过程中,出现Failed to load module "canberra-gtk-module"的提示信息,打算看下相关软件是否安装,使用命令:

 

locate libcanberra
bash: locate:未找到命令

 

  说明locate没有安装,解决方式如下:

1、安装软件:

  pacman -S mlocate

2、更新数据库:

  updatedb

3、查看文件信息:

 1 locate libcanberra
 2 /etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module.sh
 3 /usr/lib/libcanberra-0.30
 4 /usr/lib/libcanberra-gtk.so
 5 /usr/lib/libcanberra-gtk.so.0
 6 /usr/lib/libcanberra-gtk.so.0.1.9
 7 /usr/lib/libcanberra-gtk3.so
 8 /usr/lib/libcanberra-gtk3.so.0
 9 /usr/lib/libcanberra-gtk3.so.0.1.9
10 /usr/lib/libcanberra.la
11 /usr/lib/libcanberra.so
12 /usr/lib/libcanberra.so.0
13 /usr/lib/libcanberra.so.0.2.5
14 /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
15 /usr/lib/gtk-3.0/modules/libcanberra-gtk-module.so
16 /usr/lib/gtk-3.0/modules/libcanberra-gtk3-module.so
17 /usr/lib/libcanberra-0.30/libcanberra-alsa.la
18 /usr/lib/libcanberra-0.30/libcanberra-alsa.so
19 /usr/lib/libcanberra-0.30/libcanberra-gstreamer.la
20 /usr/lib/libcanberra-0.30/libcanberra-gstreamer.so
21 /usr/lib/libcanberra-0.30/libcanberra-multi.la
22 /usr/lib/libcanberra-0.30/libcanberra-multi.so
23 /usr/lib/libcanberra-0.30/libcanberra-null.la
24 /usr/lib/libcanberra-0.30/libcanberra-null.so
25 /usr/lib/libcanberra-0.30/libcanberra-pulse.la
26 /usr/lib/libcanberra-0.30/libcanberra-pulse.so
27 /usr/lib/pkgconfig/libcanberra-gtk.pc
28 /usr/lib/pkgconfig/libcanberra-gtk3.pc
29 /usr/lib/pkgconfig/libcanberra.pc
30 /usr/lib32/libcanberra-0.30
31 /usr/lib32/libcanberra-gtk.so
32 /usr/lib32/libcanberra-gtk.so.0
33 /usr/lib32/libcanberra-gtk.so.0.1.9
34 /usr/lib32/libcanberra-gtk3.so
35 /usr/lib32/libcanberra-gtk3.so.0
36 /usr/lib32/libcanberra-gtk3.so.0.1.9
37 /usr/lib32/libcanberra.so
38 /usr/lib32/libcanberra.so.0
39 /usr/lib32/libcanberra.so.0.2.5
40 /usr/lib32/gtk-2.0/modules/libcanberra-gtk-module.so
41 /usr/lib32/gtk-3.0/modules/libcanberra-gtk-module.so
42 /usr/lib32/gtk-3.0/modules/libcanberra-gtk3-module.so
43 /usr/lib32/libcanberra-0.30/libcanberra-alsa.la
44 /usr/lib32/libcanberra-0.30/libcanberra-alsa.so
45 /usr/lib32/libcanberra-0.30/libcanberra-gstreamer.la
46 /usr/lib32/libcanberra-0.30/libcanberra-gstreamer.so
47 /usr/lib32/libcanberra-0.30/libcanberra-multi.la
48 /usr/lib32/libcanberra-0.30/libcanberra-multi.so
49 /usr/lib32/libcanberra-0.30/libcanberra-null.la
50 /usr/lib32/libcanberra-0.30/libcanberra-null.so
51 /usr/lib32/libcanberra-0.30/libcanberra-pulse.la
52 /usr/lib32/libcanberra-0.30/libcanberra-pulse.so
53 /usr/lib32/pkgconfig/libcanberra-gtk.pc
54 /usr/lib32/pkgconfig/libcanberra-gtk3.pc
55 /usr/lib32/pkgconfig/libcanberra.pc
56 /usr/share/gtk-doc/html/libcanberra
57 /usr/share/gtk-doc/html/libcanberra/ch01.html
58 /usr/share/gtk-doc/html/libcanberra/home.png
59 /usr/share/gtk-doc/html/libcanberra/index.html
60 /usr/share/gtk-doc/html/libcanberra/left-insensitive.png
61 /usr/share/gtk-doc/html/libcanberra/left.png
62 /usr/share/gtk-doc/html/libcanberra/libcanberra-canberra-gtk.html
63 /usr/share/gtk-doc/html/libcanberra/libcanberra-canberra.html
64 /usr/share/gtk-doc/html/libcanberra/libcanberra.devhelp2
65 /usr/share/gtk-doc/html/libcanberra/right-insensitive.png
66 /usr/share/gtk-doc/html/libcanberra/right.png
67 /usr/share/gtk-doc/html/libcanberra/style.css
68 /usr/share/gtk-doc/html/libcanberra/up-insensitive.png
69 /usr/share/gtk-doc/html/libcanberra/up.png
70 /usr/share/vala/vapi/libcanberra-gtk.vapi
71 /usr/share/vala/vapi/libcanberra.vapi

 

  说明文件是存在的,文件找不到,建立个软链接就行了。(这里matlab有个大坑,默认使用gtk2的,不要使用gtk3)

ln -s /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so /usr/lib/libcanberra-gtk-module.so

  好了,到此结束了,就可以愉快的matlab了。

 

posted @ 2020-10-20 11:24  叕叒双又  阅读(1641)  评论(0编辑  收藏  举报