Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2001 21:36:48 -0600 (CST)
From:      Conrad Sabatier <conrads@home.com>
To:        =?iso-8859-1?Q?Jos=E9?= Romildo Malaquias <romildo@uber.com.br>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: [newbie] C compiler not finding headers and libs in /usr/loc
Message-ID:  <XFMail.20011224213648.conrads@home.com>
In-Reply-To: <3C27A45A.44750AF6@uber.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help

On 24-Dec-2001 José Romildo Malaquias wrote:
> Hello.
> 
> I have recently make a fresh install of FreeBSD 4.4 on my PC computer.
> Although most packages get installed in /usr/local, Surprisingly I have
> found out that the GNU C compiler is not able, by default, to locate
> header files in /usr/local/include, and library files in /usr/local/lib.

No, the C compiler doesn't look for includes under /usr/local by default,
and it shouldn't.

> Is this the expected behaviour? What is the best way of fixing it?

Yes, this is the correct and expected behavior.  There's really nothing to
"fix" per se.

If you mean "how can I get the compiler to use includes under /usr/local",
then all you need is to add some "-I/usr/local/include" switches in your
Makefiles.
 
> I noticed the problem when bulding xemacs-21.4.6 yesterday, because
> its configure script was not able to find the PNG library, although
> it is there.

Are you using the ports collection to do this, or building it yourself?
If you haven't tried using the ports, do yourself a favor and learn what
they're all about.

-- 
Conrad Sabatier <conrads@home.com>

The sum of the Universe is zero.


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?XFMail.20011224213648.conrads>