修改LD_LIBRARY_PATH不生效!

修改LD_LIBRARY_PATH不生效!

我的系统是FC4,没有升级过.
1:在root用户下修改/root/.bash_profile文件,内容如下.
[code:1]
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/usr/local/arm/2.95.3/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/public/Xapp/lib:/public/Xapp_arm/lib

export PATH  LD_LIBRARY_PATH
#unset USERNAME
[/code:1]
2:在普通用户下修改~/.bash_profile文件内容如下:
[code:1]
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/public/Xapp/lib:/public/Xapp_arm/lib

export PATH LD_LIBRARY_PATH
unset USERNAME
[/code:1]
3:修改/etc/profile文件,内容如下
[code:1]
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
        if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
           if [ "$2" = "after" ] ; then
              PATH=$PATH:$1
           else
              PATH=$1:$PATH
           fi
        fi
}

# Path manipulation
if [ $EUID = 0 ]; then
        pathmunge /sbin
        pathmunge /usr/sbin
        pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
    INPUTRC=/etc/inputrc
fi

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/public/Xapp/lib:/public/Xapp_arm/lib

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC LD_LIBRARY_PATH

for i in /etc/profile.d/*.sh ; do
    if [ -r "$i" ]; then
        . $i
    fi
done

unset i
unset pathmunge

[/code:1]
这三种情况下修改配置文件后重启,用export明令都看不到LD_LIBRARY_PATH,
只能每次启动都手动添加该变量值.
我以前用的FC1就可以这样修改,但在FC4下就不行了.
哪位大侠能帮忙解决一下.
为什么没人理我啊,那位大侠帮忙解决一下啊!!
用source .bash_profile 看看行不行
我试过了,可以行的通,但是不能每次启动机器都执行一次这命令啊,那就太麻烦了!
哪位大哥有解决办法帮兄弟一把吧!
另一种办法就是装回原来低版本的FC,呵呵!