Installation and Startup Failure of Postgres Database in some Linux Distributions

Log Traces
- Jul 27, 2023 6:24:49 PM [SYSOUT] [INFO] : /home/sdpuser/ManageEngine/ServiceDesk/pgsql/bin/psql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

Root Cause
- libtinfo.so is a shared library that provides terminal information handling functionality. It is part of the GNU C Library (glibc) and is used for terminal-related operations, such as handling terminal capabilities, terminal size, and terminal input/output.
- From the trace, it seems like the library could not be accessed. either it should be missing or corrupted or restricted.

WorkAround
- As mentioned in the above points, this library is required for the successful installation and startup. you can install the package using the below command.
- sudo yum install ncurses-compat-libs
- If you had already installed, but still this issue persist, which implies that the required version of library is not found. In this case, you can follow any one of the below two procedure after locating the 'libtinfo.so' package in your machine, using the command " locate libtinfo.so".
- Duplicate and Rename
- Make a copy of the file which is named "libtinfo.so.<x>" (For Example, libtinfo.so.6) in the same directory.
- Rename the copied file to "libtinfo.so.5"
- Make a symlink for the file.
- sudo ln -s <path of the located file> <same path of the located file, but rename the filename to "libtinfo.so.5">
- For Example,
- sudo ln -s /usr/lib/x_64/libtinfo.so.6 /usr/lib/x_64/libtinfo.so.5
- After this procedure, Kindly try to start the server. If the same issue persist, Kindly collect the logs and report it to our support team.
New to ADSelfService Plus?