Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Whats the recommended way to install self-compiled libraries? The libraries are supposed to replace existing ubuntu packages. Of course I want that the apt dependencies to be fullfilled. The sources for the libraries are not the ones provided by ubuntu. And I want other software to find the libraries so I would put them into the same path by overwriting existing files provided by the corresponding packages. Is this too dirty? Specifically I want to compile webkit libraries for qt since the ones provided by kubuntu are way too old.

share|improve this question

migrated from Mar 15 '12 at 22:43

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

You shouldnt mess with the libraries installed by the distro. Esp., you should not replace them with your own version as this can break many things.

You can install your own libraries in a non-system location (side by side install) and use LD_PRELOAD for pre-built binaries or if you are compiling your own apps as well, link them with your libraries.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.