A friend helped me install Racket 6.1 on my Ubuntu a long time ago. He did something with make
I don't know and now I have a Racket folder in my home directory.
Recently I'd like to upgrade Racket to 6.5, so I added Racket ppa to apt-get and then upgrade successfully. However, as I type racket into terminal, it's still version 6.1. Drracket is still 6.1, too.
Setting up racket-common (6.5-20160429~trusty) ...
Installing new version of config file /etc/racket/config.rktd ...
Setting up racket (6.5-20160429~trusty) ...
xxx@laptop:~$ racket --version
Welcome to Racket v6.1.
I opened the /etc/racket/config.rktd
, it prescribes racket directory as /usr/share/applications. When I opened /usr/share/applications
, there's an icon of DrRacket
and clicking on it's 6.1.
What can I do now?
Thank you,
UPDATE:
This is before I move the racket folder to Trash
chi@laptop:~$ racket --version
Welcome to Racket v6.1.
chi@laptop:~$ which racket
/home/chi/racket/bin/racket
chi@laptop:~$ echo $PATH
/home/chi/racket/bin:/home/chi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
This is after I move it to Trash
chi@laptop:~$ racket --version
bash: /home/chi/racket/bin/racket: No such file or directory
chi@laptop:~$ which racket
/usr/bin/racket
chi@laptop:~$ echo $PATH
/home/chi/racket/bin:/home/chi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
If I restore the racket folder from Trash, it's like before. Any suggestions?
Thank you,
hash -r
to the answer. – oerdnj May 03 '16 at 14:29