Date: 05-12-03 19:36
I was altering the Bacula http://www.freshports.org/sysutils/bacula/ port this afternoon. I am adding PostgreSQL http://www.freshports.org/databases/postgresql7/ support to it. I couldn't get the port to automatically install the PostgreSQL client http://www.freshports.org/databases/postgresql-client/. I was looking at /var/db/pkg/postgresql7-client-7.4/+CONTENTS to find the library names. I tried all of these:
with this port command:
But I failed. Then hideaway suggested this:
$ ldconfig -r | grep libpq
118:-lpq.3 => /usr/local/lib/libpq.so.3
Which means this works:
Note that the output of ldconfig -r specifies "-lpq.3" which leads to the solution shown above.