locate not working

Bryan Blackburn blb at macports.org
Mon Jan 19 18:45:28 PST 2009


On Mon, Jan 19, 2009 at 08:54:36PM -0500, Doctor Who said:
> I installed 'locate' from MacPorts not realizing that it was part of
> my Leopard install.  The locate command was working for me at one
> point, but now it returns no results. :-(
> 
> tbook:~ who$ locate locate
> tbook:~ who$ locate bash
> tbook:~ who$ locate ls
> 
> I have run 'sudo /etc/periodic/weekly/310.locate' to update the
> database for locate.  The 'locate' being run is:
> 
> tbook:~ who$ which locate
> /opt/local/bin/locate
> 
> which appears to be the MacPorts version.  How can I get either this
> locate working or start using Leopard's locate command by default?

If '/usr/bin/locate bash' works then it's simply a path issue, and the
simplest fix would be to just uninstall that port; note that I see a port
'slocate' but none just called locate, so if that isn't it you can use 'port
provides /opt/local/bin/locate' to find the port which installed it.

Bryan


> 
> Thanks.


More information about the macports-users mailing list