更新时间:2022-03-08 19:58:58
尝试这个:
1:知道路径 libpq.so.5
find / -name libpq.so.5
输出示例: /usr/pgsql-9.4/lib/libpq.so.5
如果没有找到任何内容,请检查是否已经安装了适合的postgresql-libs您的postgresql版本和您的操作系统平台
Output example:
/usr/pgsql-9.4/lib/libpq.so.5
If found nothing, check if you have already installed the suitable postgresql-libs for your postgresql version and your OS platform
2:在知名库路径(如 / usr / lib $)中的符号链接c $ c>:
2: Symbolic link that library in a "well known" library path like /usr/lib
:
ln -s /usr/pgsql-9.4/lib/libpq.so.5 /usr/lib/libpq.so.5
注意:
如果你的平台是64位,你必须还有符号链接到64位库路径:
Attention: If your platform is 64 bit, you MUST also symbolic link to 64 bit libraries path:
ln -s /usr/pgsql-9.4/lib/libpq.so.5 /usr/lib64/libpq.so.5
3:Be h appy!
3: Be happy !