CompTIA Server+ SK0-005 Practice Question
After applying routine updates to a CentOS 7 application server, a systems administrator attempts to start a custom service that was compiled to interact with PostgreSQL. The service immediately fails and the journal records:
error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory
Which of the following actions will MOST likely resolve the problem?
Install the package that provides libpq.so.5 (postgresql-libs) with the system's package manager.
Rebuild the initramfs image and reboot the server to load updated kernel modules.
Run ldconfig to rebuild the sharedâlibrary cache and then restart the service.
Open TCP port 5432 in the host firewall and reload firewalld.