Error when logging into MySQL under Linux: MySQL: error while loading shared libraries: libncurses. So. 5: cannot open shared object file:
Execute command: MySQL – U root – P
Error: MySQL: error while loading shared libraries: libncurses. So. 5: cannot open shared object file:
Analysis: lack of libncurses. So. 5
Solution:
Normal 64 bit or 32-bit Linux versions can use the following commands:
yum installlibncurses.so.5
But because I use arm64 architecture development board environment, so the command execution will prompt that no file is found
I found a file on the Internet, but also did not find the arm architecture file
Solutions for aarch64 architecture development board:
I am using an EAIDK-610 development board, and I see that the system has the libncurses.so.6.1 file in the /lib64 folder of the board.
So I use a soft connection to create a connection from libncurses.so.6.1 to libncurses.so.5, a shared library that is backward compatible.
Refer to the image example below for details.