[OS X TeX] Snow Leopard and locator

Maxwell, Adam R adam.maxwell at pnl.gov
Tue Sep 1 17:01:01 EDT 2009


On 09/01/09 10:35, "Michael Sharpe" <msharpe at ucsd.edu> wrote:

> Snow Leopard seems to have made a change to the way the locate
> database is generated. For example, the indispensible Locator program
> (version 0.73) is no longer able to generate or regenerate the
> database from within the program. The only way I've found to do it is
> 
> cd /usr/libexec
> sudo ./locate.updatedb
> 
> Leopard used to allow simply
> 
> sudo /usr/libexec/locator.updatedb

It's now run as a launchd job.  The first time you run `locate foo` it
should give you this message:

WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:

  sudo launchctl load -w
/System/Library/LaunchDaemons/com.apple.locate.plist

Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.

However, if you've manually created the db, you might not see that message.
Anyway, you can look in the com.apple.locate.plist to see how it's running
it.





More information about the MacOSX-TeX mailing list