Re: FC4 root access via user account

From: Tony Lawrence (foo_at_pcunix.com)
Date: 07/01/05


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


Relevant Pages

  • Re: FC4 root access via user account
    ... > $ make install ... > $ which gcc ... > $HOME/.bashrc if you want the change to be permanent. ... Tony Lawrence ...
    (comp.os.linux.security)
  • Re: [SLE] Problems with kxdocker
    ... I am attempting to install kxdocker in SuSE10.1 under KDE.. ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (SuSE)
  • installing X libraries?? -- need your help!
    ... Then I tried to install a kdm theme called "QtCurve- ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (Debian-User)
  • [SLE] Problems with kxdocker
    ... I am attempting to install kxdocker in SuSE10.1 under KDE.. ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (SuSE)
  • Re: RMagick
    ... ronald-greens-imac:~ ron$ sudo gem install rmagick ... checking for gcc... ... You have to install development tools first. ... to actually execute gcc. ...
    (comp.lang.ruby)