现象,运行./taoSync出现以下问题
$ ./taoSync
Error loading shared library libz.so.1: No such file or directory (needed by ./taoSync)
Error relocating ./taoSync: inflate: symbol not found
Error relocating ./taoSync: inflateInit_: symbol not found
Error relocating ./taoSync: inflateEnd: symbol not found
操作系统:银河麒麟V10SP1 2403update1 架构:arm64 飞腾d2000
现象,运行./taoSync出现以下问题 $ ./taoSync Error loading shared library libz.so.1: No such file or directory (needed by ./taoSync) Error relocating ./taoSync: inflate: symbol not found Error relocating ./taoSync: inflateInit_: symbol not found Error relocating ./taoSync: inflateEnd: symbol not found
经检查,该库是存在的 /lib/aarch64-linux-gnu$ ls -al |grep libz.so.1 lrwxrwxrwx 1 root root 32 4月 7 2024 libz.so -> /lib/aarch64-linux-gnu/libz.so.1 lrwxrwxrwx 1 root root 14 1月 10 2023 libz.so.1 -> libz.so.1.2.11 -rw-r--r-- 1 root root 104640 1月 10 2023 libz.so.1.2.11
经ldd发现 $ ldd ./taoSync linux-vdso.so.1 (0x0000007fa41b5000) libz.so.1 => /lib/aarch64-linux-gnu/libz.so.1 (0x0000007fa411d000) libc.musl-aarch64.so.1 => not found libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007fa3fab000) /lib/ld-musl-aarch64.so.1 => /lib/ld-linux-aarch64.so.1 (0x0000007fa4185000)