请教:我在 .bash_profile 里设置了几个环境变量
请教:我在 .bash_profile 里设置了几个环境变量,可以有一个没有反映,这是什么原因啊?
问题1:
我 vi .bash_profile 得到:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
~
~
~
".bash_profile" 20L, 425C
然后我加入环境变量:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
export TMAKEDIR=/tmake-1.11
export TMAKEPATH=$TMAKEDIR/lib/qws/linux-x86-g++
export PATH=$TMAKEDIR/bin:$PATH
export QTDIR=/qt-2.3.10
export QTEDIR=$QTDIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
~
~
~
".bash_profile" 20L, 425C
各位大哥我这种设置环境变量的方法对吗?
问题2:
我在终端里敲入:
# echo $QTDIR
/qt-2.3.10
# echo $PATH
/qt-2.3.10/bin:/tmake-1.11/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
# echo $TMAKEPATH
/tmake-1.11/lib/qws/linux-x86-g++
# echo $LD_LIBRARY_PATH
#
各位大哥为什么
# echo $LD_LIBRARY_PATH
得到的是空呢?
是我的环境变量设置错了,还是?
谢谢1
页:
[1]