For example, we will install libs/apps under ~/.local/
Prebuild configuring:
./configure --prefix=~/.local/Add the following lines into .bashrc or .bash_profile:
# Add local bin path
export PATH=$PATH:$HOME/.local/bin
# Add local lib and include path
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/lib
export C_INCLUDE_PATH=$C_INCLUDE_PATH:$HOME/.local/include
# Add local man path
export MANPATH=$MANPATH:$HOME/.local/man;Create ~/.local/share/config.site
CPPFLAGS=-I$HOME/.local/include
LDFLAGS=-L$HOME/.local/lib