Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 2003 09:48:14 -0600
From:      Mike Meyer <mwm-dated-1046188094.7236f8@mired.org>
To:        John Bleichert <syborg@stny.rr.com>
Cc:        freebsd <freebsd-questions@FreeBSD.ORG>
Subject:   Re: PosgreSQL from ports
Message-ID:  <15956.63678.64099.226682@guru.mired.org>
In-Reply-To: <Pine.LNX.4.44.0302201028400.20850-100000@janeway.vonbek.dhs.org>
References:  <15956.62785.172285.578609@guru.mired.org> <Pine.LNX.4.44.0302201028400.20850-100000@janeway.vonbek.dhs.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In <Pine.LNX.4.44.0302201028400.20850-100000@janeway.vonbek.dhs.org>, John Bleichert <syborg@stny.rr.com> typed:
> On Thu, 20 Feb 2003, Mike Meyer wrote:
> > You need to add -lpq to the CFLAGS so you actually use the postgres
> > library.
> Doh! I had tried that, but without the '-L' line provided above. Both are 
> required for the build. Hmm.

Yup. -lpq to tell gcc what library to use, and -L/usr/local/lib to
tell gcc where to find the library. You probably did just -lpq on
Linux, and libpq is either in /usr/lib, or gcc is preconfigured to
look in /usr/local/lib.

	<mike
-- 
Mike Meyer <mwm@mired.org>		http://www.mired.org/consulting.html
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15956.63678.64099.226682>