[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: backend issue



Am Tue, 14 Dec 2010 17:25:50 -0200
schrieb Friedrich Locke <friedrich.locke@gmail.com>:

> Hi,
> 
> Here are the location of some files related to db-4.6.21 installed in
> my box.
> 
> sioux@lion$ pkg_info -L db-4.6.21 | grep include
> /usr/local/include/db4/db.h
> /usr/local/include/db4/db_185.h
> /usr/local/include/db4/db_cxx.h
> sioux@lion$ pkg_info -L db-4.6.21 | grep lib
> /usr/local/lib/db4/libdb.a
> /usr/local/lib/db4/libdb.la
> /usr/local/lib/db4/libdb_cxx.a
> /usr/local/lib/db4/libdb_cxx.la
> /usr/local/share/doc/db4/ref/build_unix/shlib.html
> /usr/local/share/doc/db4/ref/refs/libtp_usenix.ps
> /usr/local/lib/db4/libdb.so.5.0
> /usr/local/lib/db4/libdb_cxx.so.6.0
> /usr/local/lib/libdb.so.5.0
> /usr/local/lib/libdb_cxx.so.6.0
> sioux@lion$
> 
> I setted CPPFLAGS as the following (and it worked when i
> ran ./configure):
> 
> sioux@lion$ export CPPFLAGS="-I/usr/local/include/db4"
> 
> But for LDFLAGS, how should i set it?

export LDFLAGS="-L/usr/local/lib/db4/"

I would suggest to add a runtime flag as well, or to configure link
loader to serve /usr/local/lib/db4 prior to /usr/lib/
and /usr/local/lib 

-Dieter

> 
> 
> On Tue, Dec 14, 2010 at 4:25 PM, Quanah Gibson-Mount
> <quanah@zimbra.com> wrote:
> > --On Tuesday, December 14, 2010 5:51 AM -0200 Friedrich Locke
> > <friedrich.locke@gmail.com> wrote:
> >
> >> Ok!
> >>
> >> I looked at /usr/include/db.h. How could i solve this problem ?
> >
> > Set the appropriate variables, specifically:
> > CPPFLAGS
> > and
> > LDFLAGS
> >
> > --Quanah
> >
> >
> > --
> >
> > Quanah Gibson-Mount
> > Sr. Member of Technical Staff
> > Zimbra, Inc
> > A Division of VMware, Inc.
> > --------------------
> > Zimbra ::  the leader in open source messaging and collaboration
> >



-- 
Dieter Klünter | Systemberatung
http://dkluenter.de
GPG Key ID:DA147B05
53°37'09,95"N
10°08'02,42"E