arm64系統執行 electron AppImage 報錯

cstc發表於2024-08-12

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

解決辦法
sudo apt install zlib1g-dev
/usr/lib/aarch64-linux-gnu/libz.so
或者
cd /usr/lib/aarch64-linux-gnu
sudo ln -s libz.so.1 libz.so

排查問題

打包electron arm版本 electron-builder --linux --arm64
appimage should link libz.so.1 instead of libz.so

sudo apt install apt-file
sudo apt-file update
sudo apt-file libz.so

yum系統

yum install zlib
rpm -ql zlib
ln -s /usr/lib64/libz.so.1 /usr/lib64/libz.so

相關文章