解决Failed to load module canberra-gtk-module错误
在Ubuntu环境里,通过./triangulation 1.png 2.png 命令运行高翔的ch7的triangulation程序时报错:
Gtk-Message: 09:10:26.571: Failed to load module "canberra-gtk-module"
查看一下模块位置:
locate libcanberra-gtk-module /usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk-module.so
发现已经安装了,却加载不了。
重新安装一下吧。
sudo apt-get install libcanberra-gtk-module [sudo] password for simon: Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libcanberra-gtk0 The following NEW packages will be installed: libcanberra-gtk-module libcanberra-gtk0 0 upgraded, 2 newly installed, 0 to remove and 175 not upgraded. Need to get 17.8 kB of archives. After this operation, 92.2 kB of additional disk space will be used. Do you want to continue? [Y/n] y
安装成功,再次启动程序,就不会报错了。
更多内容,请查看博客原文:解决Failed to load module canberra-gtk-module错误
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 终于写完轮子一部分:tcp代理 了,记录一下
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
2021-08-24 [转]springboot 监控 Actuator和Admin