Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

I've been using Ubuntu for a couple of years now and a problem that I consistently come across is with linking against particular versions of shared object files. For example, I'm trying to install igraph and it's giving me an error stating that it can't find the library lxml2. I have the synaptic libxml2 package installed, so I just need to find the shared objects and set up the links. So here's how I solve the problem:

jake@linux:~/code/rl/setup$ locate

jake@linux:~/code/rl/setup$ sudo ln -sf /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/

This kind of issue happens all the time and it seems like it's something that the OS should handle. So I end up asking myself, "Why isn't the linker looking for specific versions of shared objects? Why isn't synaptic creating these links on its own?"

Is there some better way of handling these issues? Is there a tool, or a best practice, or some other solution so that I don't have to repeatedly find and link my SOs manually? Or am I looking at this the wrong way?


share|improve this question
I don't have an answer, but I wonder if it's related to my problem, discussed and answered on the mailing list: – Steve Koch Feb 19 '15 at 18:09
one of the solutions to my problem was to run sudo ldconfig after make install. Just a shot in the dark whether that would help you. – Steve Koch Feb 19 '15 at 18:10

Your Answer


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

Browse other questions tagged or ask your own question.