Hi techies. I have a Solaris Server.
bash-4.2# uname -a
SunOS rc7sdp2 5.10 Generic_144488-11 sun4u sparc SUNW,Sun-Fire-V440When I am trying to do "su - sdpuser" , i get below error.
bash-4.2# su - sdpuser
MANPATH: Undefined variable.
sdpuser@rc7sdp2>I have read some forums using which i have some outputs as below.
bash-4.2# echo $MANPATH
/usr/share/manbash-4.2# echo $PATH
/usr/local/bin:/usr/ccs/bin:/usr/local/php/bin:/usr/local/apache2/bin:/usr/local/mysql/bin:/opt/EABpython/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/dt/bin:/usr/sfw/bin:/usr/openwin/bin:/opt/EABfds/bin:/opt/EABcsutls/bin:/opt/EABcsConfig/bin:/opt/EABfdslic/bin:/opt/EABfdslic/bin:/opt/EABfdslic/bin:/opt/EABfdslic/bin:/opt/TimesTen/bin:/opt/EABcss7uthd/bin/:/opt/sign/EABss7024/bin/:/opt/sign/EABss7023/bin
bash-4.2# id
uid=0(root) gid=1(other)
sdpuser@rc7sdp2>echo $MANPATH
MANPATH: Undefined variable.sdpuser@rc7sdp2>echo $PATH
/usr/local/bin:/usr/ccs/bin:/usr/bin:sdpuser@rc7sdp2>cat ~/.profile
export MANPATH=/usr/share/man:/usr/openwin/man:/usr/dt/man:/opt/EABfds/man:/opt/EABcsutls/man
Please help me on this.
Let me ask the obvious question: Did you install the man pages? It looks like somewhere in the process, the man command is being executed and the application hasn't been installed. If man has been installed set:
export MANPATH=/usr/share/man
in either each users .profile or in /etc/profile.
Yes manpath is installed on the server. For eg : see below. root@rc8sdp1>man passwd
Reformatting page. Please Wait... doneUser Commands passwd(1)
NAME
passwd - change login password and password attributesSYNOPSIS
passwd [-r files | -r ldap | -r nis | -r nisplus]
[name]Also...====================================
root@rc8sdp1>cat /etc/profile | grep -i man
MANPATH="${MANPATH:+${MANPATH}:}/usr/share/man:/usr/openwin/man:/usr/dt/man:/opt/EABfds/man:/opt/EABcsutls/man"
export PATH LSFORCEHOST LD_LIBRARY_PATH MANPATH