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 appleseed.studio
[stuff omitted]
libappleseed.so => /home/franz/Projects/appleseed/build/linux-gcc4/appleseed/libappleseed.so (0x00007fbcb090b000)
libappleseed.shared.so => /home/franz/Projects/appleseed/build/linux-gcc4/appleseed.shared/libappleseed.shared.so (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 ; ./appleseed.studio
(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.
file .../libappleseed.sooutput? Maybe you are trying to use an old 32-bit library with your new 64-bt binary. – Lekensteyn Sep 13 '12 at 11:10$ file ./libappleseed.soreturns./libappleseed.so: 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/libappleseed.soreturns/home/franz/Projects/appleseed/build/linux-gcc4/appleseed/libappleseed.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped. – François Beaune Sep 13 '12 at 11:22lddstill reports the other paths withLD_LIBRARY_PATH=/home/franz/Projects/appleseed/archives/releases/1.1.0-alpha-14-0-g4e46ed9/appleseed/bin ldd ./appleseed.studio– Lekensteyn Sep 13 '12 at 20:25LD_LIBRARY_PATH=/home/franz/Projects/appleseed/archives/releases/1.1.0-alpha-14-0-g4e46ed9/appleseed/bin ldd ./appleseed.studioreturnslibappleseed.so => /home/franz/Projects/appleseed/build/linux-gcc4/appleseed/libappleseed.so (0x00007fc27cce5000). I am at loss here. It looks like theLD_LIBRARY_PATHmechanism is somehow disabled on my system. – François Beaune Sep 14 '12 at 9:20