I'm trying a source install (configure, make) on FreeBSD but I get this error:

error: foo.h: No such file or directory

although the file does exist at /usr/local/include/foo.h so I guess the compiler is not looking in /usr/local/include .

How do I make it do so:

LDFLAGS="-L/usr/local/include"

CFLAGS="-I/usr/local/include"

LDFLAGS="-L/usr/local/include"

haven't helped. (The install works works fine on OS 10.7 Tiger)

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

Take a look at C_INCLUDE_PATH and CPLUS_INCLUDE_PATH environment variables:

export C_INCLUDE_PATH=/usr/local/include/:${C_INCLUDE_PATH}
export CPLUS_INCLUDE_PATH=/usr/local/include/:${CPLUS_INCLUDE_PATH}
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.