At 17:35 06.06.00 +0100, Roy White wrote:
>Hey Folks,
>> When the LD_LIBRARY_PATH environment variable is set as below
>> Then the following happens:
>> Twister will be able to talk to the Database but vi, more, and
>whatever else will not work.
>> When the following is set as the LD_LIBRARY_PATH env. variable
>> vi, more, etc. will work but twister will not be able to contact the
>database as it cannot find the
> file libclntsh.so.1.0 (which is present in the
>/u2/oracle/product/8.0.4/lib directory).
>>Any help on this much appreciated.
Who knows what versions of library are shafting eachother, you can get some
useful info by running ldd on the programs that are not working and seeing
what actual libraries they are using when the LD_LIBRARY_PATH is set one
way or which ones when set the other way, then maybe you can hone down the
problem. Almost certainly a noncompatible version of one of the libraries that
vi and more is using is duplicated in the LD_LIBRARY_PATH and in the broken
case
is being picked up rather than the working library.
More usefully I'd recommend for the "I just need to get this one app working
right now (tm)" to write a tiny script sommat like this...
#!/bin/sh
set LD_LIBRARY_PATH=/opt/brokat/twister-2.3.5/lib yadda yadda yadda...
twister
Leave the LD_LIBRARY_PATH in the ordinary shell set to the generally
working version
and use the script to run twister. To clean it up you could rename twister to
twister.real and rename the script to twister. This is a general shared
library
problem for solaris, linux windows etc. Im sure loads of us remember the
grief for
years with netscape and shared libs. Scouring the world looking for the
exact version
that the netscape boys linked it against so that the bastarding thing would
remain up
for longer thatn two seconds.
C.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!