goldendict: error while loading shared libraries: libQt5Svg.so.5

Ubuntu系统中,使用工具goldendict

goldendict: error while loading shared libraries: libQt5Svg.so.5: cannot open shared object file: No such file or directory

原因是没有设置环境变量,解决办法:

1 查找libQt5Svg.so.5路径./opt/netease/netease-cloud-music/libs/libQt5Svg.so.5

2 /etc/ld.so.conf.d 添加一个 文件 goldendict.conf ,内容如下
/opt/netease/netease-cloud-music/libs

3 执行命令更新动态链接库 sudo ldconfig

下面是参考地址:
QT错误解决:error while loading shared libraries: libXXX.so

你可能感兴趣的:(杂项,ubuntu,qt)