T wrote: > Hi > > In the Solaris environment in the big firm that I worked with previously, > they have multi-version of anything, from Perl to Tcl/Tk, and even X. > > We used the environment var LD_LIBRARY_PATH to give preference/order of > the libraries that we use. Does this still applied to Linux? > > I tried to do it under Linux but didn't success. Here is what I tried: > > $ slocate import_ac3 > /usr/lib/transcode/import_ac3.so > /opt/old/usr/lib/transcode/import_ac3.so > > export > LD_LIBRARY_PATH=/opt/old/usr/lib/transcode:/opt/old/usr/lib:/usr/X11R6/lib > > $ /opt/old/usr/bin/transcode -i test-src.0.vbr.avi -y ffmpeg --export_prof > dvd -N 0x2000 -E 48000,16,2 -o test-src.0.vbr > transcode v0.6.14 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg > [...] > [import_ac3.so] v0.3.2 (2002-02-15) (audio) AC3 > /opt/old/usr/bin/transcode: relocation error: > /usr/lib/transcode/import_ac3.so: undefined symbol: tc_test_string > > Here, the normal lib is preferred, instead of my old one. How can I fix that? > > PS. I've set the following, but didn't work. > > export > LD_LIBRARY_PATH=/opt/old/usr/lib/transcode:/opt/old/usr/lib:/usr/X11R6/lib:/usr/lib/transcode:/usr/lib > > please help. thanks > > tong
It should work. The way to be sure which library is being loaded is to export the LD_LIBRARY_PATH variable the way you want it and then run `ldd /opt/old/usr/bin/transcode` to see where it finds the shared libraries. -Roberto -- Roberto C. Sanchez http://familiasanchez.net/~roberto
signature.asc
Description: OpenPGP digital signature