I’m encountering an error when trying to import a WordPress database into a LocalWP site on my Debian Linux machine. The import fails with the following error message:
Error: Failed to get current SQL modes. Reason: mysql: /home/dwayne/.config/Local/lightning-services/php-7.4.30+6/bin/linux/shared-libs/libtinfo.so.5: version NCURSES_TINFO_6.2.20211010' not found (required by /lib/x86_64-linux-gnu/libncurses.so.5) Error: Importing database failed.
It seems the mysql
client used by WP-CLI can’t find the correct version of the libtinfo.so.5
library. I’ve tried the following troubleshooting steps:
- Updating LocalWP
- Reinstalling MySQL within LocalWP
- Searching for the specific library version in Debian repositories
However, I haven’t been able to resolve the issue.
My Setup:
- OS: Debian GNU/Linux 12 (Bookworm)
- LocalWP Version: Version 9.0.5+6706
- MySQL Version: 8.0.16 (within LocalWP)
- MariaDB Version: 10.11.6 (installed on my system)
Additional Information:
- Output of
ldd /usr/bin/mysql
:
linux-vdso.so.1 (0x00007ffe781a3000) libedit.so.2 => /lib/x86_64-linux-gnu/libedit.so.2 (0x00007f1f177b4000) libncurses.so.6 => /lib/x86_64-linux-gnu/libncurses.so.6 (0x00007f1f1778b000) libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f1f17758000) libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007f1f176af000) libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f1f17200000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1f17690000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1f16e00000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1f1701f000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f1f16dea000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1f16d0b000) /lib64/ld-linux-x86-64.so.2 (0x00007f1f17d25000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1f16ceb000) libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f1f16cde000)
- Output of
objdump -p /lib/x86_64-linux-gnu/libtinfo.so.5 | grep "SONAME"
:
SONAME libtinfo.so.5
Could you please provide guidance on how to resolve this library compatibility issue? Are there any known workarounds or specific configurations for Debian Linux?
Thank you for your time and support!