<p>I work on a Fedora Linux box.</p>

<p>I have a whole host of binaries and libraries that I've installed locally under my home directory.</p>

<p>I'd like to set my system up so installing software there functions the same way (for me) as if the root user installed it without a prefix.</p>

<p>I can run binaries installed in ~/local/bin just fine by adding that dir to my PATH variable, but what about linking to libraries in ~/local/lib and ~/local/lib64?</p>

<p>Is there something akin to LD_LIBRARY_PATH variable but to find the library at compile rather than runtime?  I don't want to worry about explicitly passing the path to the compiler via L~/local/lib or through flags in the ./configure script.</p>

Set the
```
LIBRARY_PATH
```
environment variable to
```
$HOME/local/lib:$HOME/local/lib64
```
. You can also set the environment variables
```
C_INCLUDE_PATH
```
and
```
CPLUS_INCLUDE_PATH
```
to find include files in
```
$HOME/local/include
```
. These are environment variables used by GCC to find libraries and include files, so they probably won't work with other compilers.