Re: [Networker] libgcc_s.so.1 from legato 7.2.1 on RHEL4
2006-08-29 16:42:39
Dag Nygren wrote:
The right way o do thisios of course setting the LD_LIBRARY_PATH
environment variable to /usr/lib/nar before starting the networker
parts.
Unfortunately, it looks more complex than that. Since the lgtonode
package is what set the path in ld.so.conf, I decided to run this
command to see what from lgtonode makes use of /usr/lib/nsr:
rpm -ql lgtonode | grep sbin | xargs ldd | less
Turns out many of the cli tools, not just long running daemons, want to
use the libs from /usr/lib/nsr. To fix this on my own I think I would
need a metric-a**-load of wrapper scripts before I could remove that
line from /etc/ld.so.conf. I think the other possible option is to
create a new user account that would have enough privileges to run
networker cli tools. That account would have a custom LD_LIBRARY_PATH
set as you suggest. I could then remove the path from ld.so.conf so long
as networker tools ran under the user account I created.
I don't do much with C, but as a guess it sounds like Legato/EMC should
be linking their dynamic libs with an rpath set to avoid the need to put
the path into the system config.
--
Scott Russell <lnxgeek AT us.ibm DOT com>
IBM Linux Technology Center, System Admin
To sign off this list, send email to listserv AT listserv.temple DOT edu and type
"signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu
if you have any problems
wit this list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|
|
|