I was told to do like this, but I still do not know exactly what to do, please read this discussion:
> Now you need to add "/usr/brlcad/bin" to your search
> path. There are two possibilities:
>
> If you use "bash" or "sh" shell (most likely) run
these two commands
> and also add these two lines to a ".profile" file in your home
> directory:
>
> PATH=$PATH:/usr/brlcad/bin
> export PATH
>
> or if you use "csh" or "tcsh" run this command and
also add it to a
> ".cshrc" file in your home directory:
>
> set path=($path /usr/brlcad/bin)
>
> To tell which shell you are using, run "ps".
And I replied like this...
Yes, I have been trying to do a path, but cannot find ”.profile” file from home
directory. Instead I found “profile” from /etc/ directory. Please tell where to
find right file from redhat 9.0 and how to edit it exactly. Here is my
/etc/profile. If it is a right file, please edit it properly, that is easiest
way to proceed, I think.
I have done "updatedb" as root, locate cannot find the
".profile" -file
Thanks a lot!
-Tommi
My 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
-------------------------------------------------------------------------
Thanks for any help!
-Tommi
