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

I have several builds of an application on my system (a dev build and many older released builds). When I'm trying to run an older release, the system invariably picks up the dynamic libraries from the dev build.

From /home/franz/Projects/appleseed/archives/releases/1.1.0-alpha-14-0-g4e46ed9/appleseed/bin which is the directory of the older release I'm trying to run:

$ ldd 
    [stuff omitted] => /home/franz/Projects/appleseed/build/linux-gcc4/appleseed/ (0x00007fbcb090b000) => /home/franz/Projects/appleseed/build/linux-gcc4/appleseed.shared/ (0x00007fbcb030c000)
    [more stuff omitted]

(/home/franz/Projects/appleseed/build/linux-gcc4/appleseed/ is the path to my dev build.)

Naturally I should set LD_LIBRARY_PATH correctly before running an older release:

$ export LD_LIBRARY_PATH=/home/franz/Projects/appleseed/archives/releases/1.1.0-alpha-14-0-g4e46ed9/appleseed/bin ; ./

(LD_LIBRARY_PATH is initially empty so I don't bother with concatenation.)

However this doesn't work and the system continues to pick up the dev build of the dynamic libraries.

Am I doing something wrong? Any idea?

I am running a 64-bit build of Ubuntu 10.10 Maverick Meerkat (unsupported as of April 2012).

UPDATE: I have updated my system to Ubuntu 11.10 (Natty) and the problem persists.

share|improve this question
What does file .../ output? Maybe you are trying to use an old 32-bit library with your new 64-bt binary. – Lekensteyn Sep 13 '12 at 11:10
Everything is 64-bit: $ file ./ returns ./ ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped, while $ file /home/franz/Projects/appleseed/build/linux-gcc4/appleseed/ returns /home/franz/Projects/appleseed/build/linux-gcc4/appleseed/ ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped. – François Beaune Sep 13 '12 at 11:22
Ok, then you might want to check whether ldd still reports the other paths with LD_LIBRARY_PATH=/home/franz/Projects/appleseed/archives/releases/1.1.0-alpha-14‌​-0-g4e46ed9/appleseed/bin ldd ./ – Lekensteyn Sep 13 '12 at 20:25
Unfortunately, it doesn't: LD_LIBRARY_PATH=/home/franz/Projects/appleseed/archives/releases/1.1.0-alpha-14‌​‌​-0-g4e46ed9/appleseed/bin ldd ./ returns => /home/franz/Projects/appleseed/build/linux-gcc4/appleseed/ (0x00007fc27cce5000). I am at loss here. It looks like the LD_LIBRARY_PATH mechanism is somehow disabled on my system. – François Beaune Sep 14 '12 at 9:20
  1. Make sure that under


    you really have the shared libraries you want to load. Are they really in the bin/ directory of the archive? Not lib/?

  2. Try

    /lib/ --library-path /home/franz/Projects/appleseed/archives/releases/1.1.0-alpha-14-0-g4e46ed9/appleseed/bin ./

    You can use the options from that program to control and debug the library loading process.

share|improve this answer
Absolutely, the bin/ directory does contain the shared libraries I want to load. Is /lib/ supposed to be an executable binary? I haven't got it in my system. – François Beaune Sep 13 '12 at 11:56
OK, it seems to be Linux's dynamic linker: Seems like I should be able to install it via the package manager. – François Beaune Sep 13 '12 at 12:04
Can't seem to find ld-linux-so.2, or in the package list or via apt-get. – François Beaune Sep 13 '12 at 12:08
The dynamic linker seems to be called on my system. So if I run the command you suggested, starts but immediately complains that it isn't started from the bin/ directory of its installation. – François Beaune Sep 13 '12 at 12:32
Hehe, thanks for the link. I am actually the author of appleseed :) – François Beaune Sep 13 '12 at 12:40

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.