|||
https://blog.csdn.net/pkgfs/article/details/45540157
全局范围: /etc/profile ;
当前用户: ~/.bashrc 或 ~/.bash_profile ;
#注意等号两边不能有空格!
#可执行文件路径。
export PATH=$PATH:$HOME/usr/bin
#c头文件路径
C_INCLUDE_PATH=$HOME/usr/include
export C_INCLUDE_PATH
#c++头文件路径
CPLUS_INCLUDE_PATH=$HOME/usr/include
export CPLUS_INCLUDE_PATH
#动态链接库路径
LD_LIBRARY_PATH=$HOME/usr/lib
export LD_LIBRARY_PATH
#静态库路径
LIBRARY_PATH=$HOME/usr/lib
export LIBRARY_PATH
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-22 16:52
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社