startup environment

malachor

Verified User
Joined
Apr 15, 2005
Messages
36
Location
Seattle, WA
i just reinstalled perl in a new location and i was told to;

Please modify your startup environment by adding:

/opt/perl/bin to PATH
/opt/perl/man to MANPATH


i dont know what exactly they are calling the startup enviroment, can you please help
 
This would mean the .profile per user or /etc/profile for systemwide changes.

Regards,
Onno Vrijburg
 
did you look into those 2 files to see what's inside?

When you log in type "cat .profile" (without the "")
then type "cat /etc/profile" (without the "") and let me know what you see.

What OS are you using?
 
im using centos 3.x

here is the output;
[root@tronserver root]# cat .profile
cat: .profile: No such file or directory
[root@tronserver root]# cat /etc/profile
# /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 [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after

unset pathmunge

# 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

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

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

unset i
 
As you see I've quoted a part of your post, this part in fact :

malachor said:
fi
}

# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
[/B]

now this is where you add the stuff you need

Originally posted by malachor
fi
}

PATH=$PATH:/opt/perl/bin
MAPPATH=$MANPATH:/opt/perl/man


# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin

Regards,
Onno Vrijburg
 
Back
Top