[Solved] Error reported using telnet command in Centos7: telnet: error while loading shared libraries: libtinfo.so.6

1.Preconditions for solution

LZ found the package libtinfo. So. 5 in the directory/usr/lib64. Although there is no libtinfo. So. 6, there is libtinfo. So. 5, which can be downward compatible. Building a link can solve this problem.

2.Solutions

1. Replace the nonexistent libtinfo. So. 6 library with libtinfo. So. 5 and execute the following command

[root@localhost /]# cd /usr/lib64/
[root@localhost lib64]# ln -s libtinfo.so.5 libtinfo.so.6

2. Execute the telnet command again.

Read More: