Re: FC4 root access via user account
From: Tony Lawrence (foo_at_pcunix.com)
Date: Fri, 01 Jul 2005 12:43:21 -0400
Tony Lawrence wrote:
> Joachim Schipper wrote:
>> $ export PATH=$HOME/bin:$PATH
>> $ cd $HOME/work/gcc_work
>> $ ./configure --prefix=$HOME
>> $ make
>> $ make install
>> $ hash -r # Empty hash lookup table for commands; see help hash
>> $ which gcc
>> The last command will now list $HOME/bin/gcc. Put the first command in
>> $HOME/.bashrc if you want the change to be permanent.
> But why "hash -r"? The PATH= resets the hash anyway, doesn't it?
Oh, duh, I see: specifically because it's gcc he's compiling, so we need
to clear it to use the new gcc just created..
-- Tony Lawrence Unix/Linux/Mac OS X resources: http://aplawrence.com