Fix Libtinfo.so.5 Issue

Problem

Coderrect uses clang-9 to parse the source code of your project. Clang-9 requires a shared library libtinfo.so.5.

Without this library, you will see an error message like this:

[root@45e6389c19da pi]# /coderrect/clang/bin/clang pi.c

/coderrect/clang/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
Solution

Case 1 – your distribution installed libtinfo.so.6

Most latest Linux distributions installs a newer version of libtinfo – libtinfo.so.6. Please run the command below to verify:

$ find / -name 'libtinfo*' -print 2>/dev/null
/lib/x86_64-linux-gnu/libtinfo.so.6
/lib/x86_64-linux-gnu/libtinfo.so.6.1

You can create a symbol link to cheat clang-9 if this is your case:

$ cd /lib/x86-64-linux-gnu
$ ln -s libtinfo.so.6.1 libtinfo.so.5