How to fix unixODBC "Can't open lib 'postgresql': file not found" on Linux
Problem:
When you try to connect to a PostgreSQL database using a ODBC application such as KiCAD (database library connection), you see the following error message:
unixodbc_error_output.txt
[unixODBC][Driver Manager]Can't open lib 'postgresql' : file not found
Solution
First, install the ODBC PostgreSQL driver adapter:
install_odbc_postgresql.sh
sudo apt -y install odbc-postgresql
Using that driver, you would typically use a driver setting such as
odbc_driver_setting.ini
Driver={PostgreSQL Unicode}
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow