Re: GNU locate looking into a non-existant tree
Re: GNU locate looking into a non-existant tree
- Subject: Re: GNU locate looking into a non-existant tree
- From: John B Brown <email@hidden>
- Date: Sat, 15 May 2010 17:55:00 -0600
On 5/15/10 5:23 PM, Mo McRoberts wrote:
On 16-May-2010, at 00:21, John B Brown wrote:
Dear Folk,
After doing a wipe -r on /usr/local and recompiling the GNU findutils package to install under /usr, the command 'locate --version' returns a peculiar failure;
(1): % locate --version
-bash: /usr/local/bin/locate: No such file or directory
But of course, it's correct, but 'whereis' reveals;
(5): % whereis locate
/usr/bin/locate
My PATH has no /usr/local anything in it now; I edited all that stuff out.
the error’s from bash itself. it caches paths of executables you’ve run recently. do a “hash locate” to force it to forget the old path.
M.
jbb@pinball3:~/gnu/build/findutils-4.4.2
(28): % hash locate
jbb@pinball3:~/gnu/build/findutils-4.4.2
(29): % locate --version
-bash: /usr/local/bin/locate: No such file or directory
jbb@pinball3:~/gnu/build/findutils-4.4.2
(30): % hash /usr/bin/locate
jbb@pinball3:~/gnu/build/findutils-4.4.2
(31): % locate --version
-bash: /usr/local/bin/locate: No such file or directory
Apparently that is not the source of the error.
Shalom,
John B. Brown.
[email@hidden]
358 High Street,
Buffalo, Wyoming
82834
"Freedom is not worth having if it does not include
the freedom to make mistakes" Mahatma Gandhi
"If any question why we died, tell them,
because our fathers lied." Rudyard Kipling
"A man who does not know the truth is just an idiot
but a man who knows the truth and calls it a lie
is a crook." Bertolt Brecht
"I wonder whether the world is being run
by smart people who are putting us on
or by imbeciles who really mean it." Mark Twain
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden