deluxernd
asked on
Program compilation & installation fundamentals - Part II
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 ?
~Rider
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 ?
~Rider
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes I installed from source. I have been playing around with the ./configure arguments hence multiple installs/uninstalls.
If there is no proper way to uninstall, atleast what is the best option to remove them from the system? Can I just delete all the related files from lib/ /bin /include & /pkg-config? Should that do?
Thanks
If there is no proper way to uninstall, atleast what is the best option to remove them from the system? Can I just delete all the related files from lib/ /bin /include & /pkg-config? Should that do?
Thanks
> ... what is the best option to remove them from the system?
find / -type f -name the-filename-to-be -removed---you-know-for-su re
> Can I just delete all the related files from lib/ /bin /include & /pkg-config? Should that do?
i.g. yes if these are the files you installed
keep in mind that port or propriatory (mens non Mac OS X) source are installed in /usr/local or /opt/ or /opt/local
find / -type f -name the-filename-to-be -removed---you-know-for-su
> Can I just delete all the related files from lib/ /bin /include & /pkg-config? Should that do?
i.g. yes if these are the files you installed
keep in mind that port or propriatory (mens non Mac OS X) source are installed in /usr/local or /opt/ or /opt/local
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Experts please answer part 3 that I'll be posting the link shortly
ASKER
Experts could you please answer the part 3 of the series
https://www.experts-exchange.com/questions/27702786/Program-compilation-installation-fundamentals-Part-III.html
https://www.experts-exchange.com/questions/27702786/Program-compilation-installation-fundamentals-Part-III.html
ASKER
experts could you please answer the related question
https://www.experts-exchange.com/questions/27710974/Program-compilation-installation-fundamentals-Part-IV.html
https://www.experts-exchange.com/questions/27710974/Program-compilation-installation-fundamentals-Part-IV.html
If installing from source, there is often not a neat way to uninstall. As a precaution you should keep a log of your session so you can see what make install did - the script utility can be handy for doing this.