在 CentOS 上“集成 AppImage 环境”,通常指两件事之一:
下面分别说明。
CentOS(尤其是最小化安装)可能缺少一些库:
sudo yum install -y \
fuse \
libglvnd-glx \
libnss3 \
gtk3 \
alsa-lib \
libxkbcommon
CentOS 7 用 yum,CentOS 8+/Stream 用 dnf。
sudo modprobe fuse
sudo chmod 755 /dev/fuse
chmod +x example.AppImage
./example.AppImage
如果提示:
AppImages require FUSE
说明 FUSE 未正确配置。
sudo yum install -y \
gcc-c++ \
cmake \
git \
file \
patchelf \
glib2-devel \
fuse-devel
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
AppImage 若在 新系统构建,旧系统运行 容易失败。
建议:
./xxx.AppImage --appimage-extract
然后手动写 .desktop 文件。
如果你只是想 系统级支持 AppImage:
sudo yum install -y fuse
sudo systemctl enable --now fuse
然后所有 .AppImage 可直接执行。
如果你指的是:
可以告诉我具体场景,我可以给你更精确的方案。