红联Linux门户
Linux帮助

man帮助无法正常使用

发布时间:2006-10-08 01:02:10来源:红联作者:Myiozzdoc
问题:

[code][lwg@localhost ~]$ man tar[/code]
man: 没有那个文件或目录
Failed to open the message catalog man on the path NLSPATH=

No manual entry for tar

查看:

[code][lwg@localhost ~]$ set | grep $MANPATH
MANPATH=/opt/jdk1.5.0_06/man
[lwg@localhost ~]$ set | grep NLSPATH
[lwg@localhost ~]$ su
Password:
[root@localhost lwg]# set | grep $MANPATH
MANPATH=/opt/jdk1.5.0_06/man
[root@localhost lwg]# set | grep NLSPATH
[root@localhost lwg]# exit
exit
[lwg@localhost ~]$ cat .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

export JAVA_HOME=/opt/jdk1.5.0_06
export PATH=$PATH:$JAVA_HOME/bin
export MANPATH=$JAVA_HOME/man
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar

#Config fcitx
#export XMODIFIERS="@im=fcitx"
#export XIM=fcitx
#export XIM_PROGRAM=fcitx

#Load fcitx
#exec fcitx 或者 fcitx&
#fcitx&
[lwg@localhost ~]$[/code]

解决:

[code][lwg@localhost ~]$ vim .bash_profile[/code]

注释掉内容为: export MANPATH=$JAVA_HOME/man 的这一行。

[lwg@localhost ~]$ man tar (正常啦!)
文章评论

共有 0 条评论