Solved: WARNING: The locate database (/var/db/locate.database) does not exist
Linux is great but at times after you update your mac it disables some key command lines which are really helpful for developers. For example today I just discovered that my locate command was either not not working or was missing after the update. I received the error below:
WARNING: The locate database (/var/db/locate.database) does not exist.
After some investigation I finally figured it out that the database had to be rebuild again so a simple command line did the trick.
Open your terminal.app the type copy and paste this line of code :
/usr/libexec/locate.updatedb
This command will succefully update and rebuild your DB. Note that this might take a awhile so be patient and if you get an error like this after its finished just ignore as it will still work.
/usr/libexec/locate.updatedb: line 97: /var/db/locate.database: Permission denied
Happy locating!!!