0

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)

sysadmin1138
  • 133,124
  • 18
  • 176
  • 300
Gazzer
  • 185
  • 1
  • 2
  • 9

1 Answers1

1

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}
quanta
  • 51,413
  • 19
  • 159
  • 217