Could you answer the below basic questions on program compilation and linking
1. I've installed certain libraries (libavcodec, libavfilter) over and over and have been uninstalling them the same number of times (at least to my knowledge). However I see /usr/local/lib populated with their .dylibs and multiple shortcuts pointing with the similar lib filename.
1 a. Why did such a thing happen?
1 b. How can I properly uninstall them?
2. Why some times these libraries get saved to /usr/local/lib and other times they are saved to /usr/lib ?