定位
定位
ldd /opt/app/bin/app | grep -i 'not found'
readelf -d /opt/app/bin/app | head # DT_NEEDED 依赖
file /opt/app/bin/app # 架构核对(x86_64/aarch64)修复
修复
dnf provides '*/libxxx.so*' # 查询提供者包
dnf install -y <包名>
# 自编译库放 /usr/local/lib 后:
ldconfig
ldd /opt/app/bin/app | grep -ci 'not found' # 期望为 0