You are not logged in.
Pages: 1
Under terminal, bash keeps saying that "command not found". It even can not find "locate"...
I assume this must be something related to PATH, but I don't know how to fix it..
Thanks!
Last edited by horsecool (2010-04-11 05:25:36)
Offline
Offline
It gives something like this:
/bin:/usr/bin:/sbin:/usr/sbin:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core
Offline
Well, that looks correct...
what does "file /usr/bin/locate" give?
Offline
It gives:
/usr/bin/locate: cannot open `/usr/bin/locate' (No such file or directory)
Does this mean "locate" is not installed?
Offline
It seems that way... are there other commands that do not work?
Offline
Well, I just installed Matlab on the server and bash couldn't find it. I had to go to the specific directory to open Matlab. Then I realized that "/usr/local/bin" seems not in $PATH, adding it solved that problem.
But I still can not use "locate"... I installed findutils, and it still does not work..
Offline
> pacman -Ss locate
core/findutils 4.4.2-1 (base)
GNU utilities to locate files
core/mlocate 0.22.4-1
Faster merging drop-in for slocate
You want the other package
Offline
problem sloved
Thanks a lot!
Offline
Pages: 1