View Full Version : startup environment
malachor
04-21-2005, 02:11 AM
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
resolveit
04-21-2005, 04:08 AM
This would mean the .profile per user or /etc/profile for systemwide changes.
Regards,
Onno Vrijburg
malachor
04-21-2005, 10:10 AM
i dont see anything that looks like the location to modify anything
resolveit
04-21-2005, 11:40 AM
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?
malachor
04-21-2005, 02:16 PM
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
resolveit
04-22-2005, 12:27 AM
As you see I've quoted a part of your post, this part in fact :
Originally posted by malachor
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
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.