Link to home
Start Free TrialLog in
Avatar of deluxernd
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
SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Duncan Roe
Did you install these from source? When building, what arguments did you give to ./configure?
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.
Avatar of deluxernd
deluxernd

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
> ... what is the best option to remove them from the system?
find / -type f -name the-filename-to-be -removed---you-know-for-sure

> 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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Experts please answer part 3 that I'll be posting the link shortly