问题描述:今天在linux中执行Appimage文件的时候提示报错。
报错信息:error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
第一次尝试:根据报错信息,网上的说法是没有打包libasound2,给出的解决方案是:
sudo su # 切换到su 用户
apt update
apt install libasound2
执行到第二条命令,出现以下提示:
根据报错信息再次搜索,了解到此错误的原因:
linux系统分为两种系列:
RedHat系列的包管理工具使用的是:yum
Debian系列的包管理工具使用的是:apt-get
于是使用命令查看我的linux属于哪种系列:
cat /proc/version
使用yum进行第二次尝试,在执行yum install libasound2 命令之后报错:
Error:Unable to find a match
很明显是找不到这个包,所以系统应该没安装这个包。
于是执行安装命令,进行第三次尝试:
//安装libasound.so.2的命令:
yum install alsa-lib-devel
安装成功:
页面更新:2024-05-02
本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828
© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号