2008/8/4 Frioffol Friofool <friofool / gmail.com>:
> thanks to take all this time to help me....
>
> this is better, after i removed the compiled version i get that :
>
> [root@compute src]# cat `which gem` | head -n 1
> #!/usr/bin/ruby
> [root@compute src]# ls -l `which ruby`
> -rwxr-xr-x 1 root root 3748 jui  1 10:33 /usr/bin/ruby
>
> great ! but i when i try to run ruby that's a drama...
>
> [root@compute src]# ruby
> -bash: /usr/local/bin/ruby: No such file or directory
>
> My path is :
>
> /usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
>
> maybe another thing to do for updating the path ?

Yes, bash caches the ruby -> /usr/local/bin/ruby association.
Here's a description:
http://blog.byohosting.com/2008/01/17/how-to-clear-shell-command-path-cache/

If everything else fails, open a new shell.

Stefan