1. PATH
Many applications on Linux is dependent on the PATH,
for example, pkgconfig
need to export PKG_PATH_CONFIG = /usr/local/lib:/usr/lib to have lib packages in both /usr/local/lib/pkgconfig and /usr/lib/pkgconfig to know the library.
2. updatedb
Use locate to check if the system had the correct path.
use updatedb to update the path