Author: Dan
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:
libpq.a
libpq.so
libpq.so.3
with this port command:
LIB_DEPENDS+= libpq:${PORTSDIR}/databases/postgresql-client
But I failed. Then hideaway suggested this:
$ ldconfig -r | grep libpq
118:-lpq.3 => /usr/local/lib/libpq.so.3
Which means this works:
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql-client
Note that the output of ldconfig -r specifies "-lpq.3" which leads to the solution shown above.
--
Webmaster
|
|