Bash caches path lookups. Try "hash -r" to invalidate the cache.


On Thursday, January 10, 2013 11:25:23 AM UTC, Simon King wrote:
>
> Hi Volker, 
>
> On 2013-01-09, Volker Braun <vbrau...@gmail.com <javascript:>> wrote: 
> > The gcc/g++/... should all be symlinks to ccache if it is correctly set 
> up. 
> > E.g.: 
> > 
> > [vbraun@volker-desktop ~]$ ls -al `which gcc` 
> > lrwxrwxrwx. 1 root root 16 Dec  1 19:05 /usr/lib64/ccache/gcc -> 
> > ../../bin/ccache 
>
> I tried 
>   > sudo ln -s ccache /usr/local/bin/gcc 
>   > ls -l /usr/local/bin/gcc 
>   lrwxrwxrwx 1 root root 6 10. Jan 10:29 /usr/local/bin/gcc -> ccache 
>
> but I still get 
>   > which gcc 
>   /usr/bin/gcc 
>   > ls -al `which gcc` 
>   lrwxrwxrwx 1 root root 7  6. Dez 2011  /usr/bin/gcc -> gcc-4.6 
>
> even though /usr/local/bin comes before /usr/bin in PATH. 
>   >  echo $PATH 
>   /home/simon/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/... 
>
> What did I do wrong? 
>
> Best regards, 
> Simon 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.


Reply via email to