PostgreSQL psql: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory

PostgreSQL About 232 words

错误信息

执行psql时抛出异常:

psql: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory

解决方法

添加配置

echo "export LD_LIBRARY_PATH=/home/postgres/16.1/lib" >> ~/.bashrc

刷新配置

source ~/.bashrc
Views: 920 · Posted: 2024-06-02

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh