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.
/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.