The EnterpriseDB ECPG interface library is part of the EnterpriseDB installation.
The preprocessor program, ecpg, is included in a normal EnterpriseDB
installation at
<EnterpriseDB-Installation Folder>/dbserver/bin.
The EnterpriseDB ECPG interface library is supported on UNIX/LINUX platforms.
Install EnterpriseDB.
Locate file libpq.so in the dbserver/lib directory
(eg. EnterpriseDB is installed in /opt so the full path on the system will be
/opt/EnterpriseDB/8.2/dbserver/lib/libpq.so)
Check the existence of libpq.so.4 at /usr/lib.
If not found then execute the following command:
ln - s <source filename> <new file name> e.g.
ln -s /opt/EnterpriseDB/8.2/dbserver/lib/libpq.so /usr/lib/libpq.so.4