C/C++非标准目录下的编译依赖和运行库依赖

编译依赖:

export LIBRARY_PATH=${HOME}/local/lib:$LIBRARY_PATH

export PKG_CONFIG_PATH=/usr/share/pkgconfig:${HOME}/local/lib/pkgconfig



运行库依赖:

export LD_LIBRARY_PATH=${HOME}/local/lib


运行:

export PATH="${HOME}/local/bin:$PATH"

编译:

./configure --prefix=${HOME}/local

make build;cd build;cmake -DCMAKE_INSTALL_PREFIX=${HOME}/local ..

你可能感兴趣的:(C/C++)