MANPATH: Undefined variable. is the error

December 16, 2012 at 23:45:08
Specs: Solaris
Hi techies.

I have a Solaris Server.

bash-4.2# uname -a
SunOS rc7sdp2 5.10 Generic_144488-11 sun4u sparc SUNW,Sun-Fire-V440

When 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/man

bash-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.


See More: MANPATH: Undefined variable. is the error

Report •


#1
December 17, 2012 at 13:33:20
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.



Report •

#2
December 22, 2012 at 23:14:20
Yes manpath is installed on the server. For eg : see below.

root@rc8sdp1>man passwd
Reformatting page. Please Wait... done

User Commands passwd(1)

NAME
passwd - change login password and password attributes

SYNOPSIS
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


Report •

Related Solutions


Ask Question