Thank you
You can accomplish this by setting the LD_LIBRARY_PATH environment
variable to /usr/local/lib in your .profile file. This environment
variable supplements the default paths ld uses to search for libraries
(in other words, it does *not* override the default path).
See the man pages for ld and ld.so.1 for more information. Good luck!
--
Eric Dennis
http://www.ericdennis.com
Is is a BAD THING to advice newbies to use LD_LIBRARY_PATH. He should
link programs using -R/usr/local/lib (for exapmple) option so that
path to librires is encoded into executable.
Anyhow, LD_LIBRARY_PATH does not work for setuid root programs, so he
will need to do the right thing anyway from time to time.
--
Aleksandar Milivojević <al...@fly.srk.fer.hr>
Opinions expressed herein are my own.
Statements included here may be fiction rather than truth.
However, getting some programs to compile correctly with -R, is much more
difficult than doing
export LD_LIBRARY_PATH=/usr/lib:/opt/sfw/lib:/usr/local/lib
once.
So I would say that setting LD_LIBRARY_PATH *is* for newbies, not the other
way around.
>Anyhow, LD_LIBRARY_PATH does not work for setuid root programs, so he
>will need to do the right thing anyway from time to time.
true
--
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]
S.1618 http://thomas.loc.gov/cgi-bin/bdquery/z?d105:SN01618:@@@D
The word of the day is mispergitude
Hey, its easier to just run "xhost +" but we all acknowledge that some
quick and easy hacks are just a bad idea.
Good system administration practices should be shouted from the rooftops,
bad ones should be left for Microsoft Press books.
John
groe...@acm.org
> However, getting some programs to compile correctly with -R, is much more
> difficult than doing
>
> export LD_LIBRARY_PATH=/usr/lib:/opt/sfw/lib:/usr/local/lib
>
> once.
/usr/lib in front of others?
> So I would say that setting LD_LIBRARY_PATH *is* for newbies, not the other
> way around.
You can set LD_OPTIONS=-R/opt/sfw/lib:/usr/local/lib once.
> >Anyhow, LD_LIBRARY_PATH does not work for setuid root programs, so he
> >will need to do the right thing anyway from time to time.
>
> true
Mmm. You can use crle to make it work. Not that I would advise that, but
it's sometimes necessary with binary crap.
--
.-. .-. Sarcasm is just one more service we offer.
(_ \ / _)
| da...@arsdigita.com
|
interesting. havent heard of that one before. At what level does it work
at?
(EG: what programs/libraries pay attention to it?)
The ld(1) utility. It bypasses all the crap that you (and me) don't like
and kindly asks linker to use this flag. It's a kind of magic. :-)
ooOOoooo.....
And its an environment var, so it doesnt matter what the hell some ung-dly
"open" sourcer did with their makefile. I *LIKE*.
Hmmm. Seems like "LD_RUN_PATH" is the more specific -R permutation
of this method. Although if there is an -R set, that overrides.
Hmmmm...
Taking the easy way will leave him in the newbie state forever. I'd
rather suggest "the right way" of doing something to people asking
advice. Never quick and dirty shortcuts.
Did I ever tell you that linker subsystem is the best part of Solaris?
> Hmmm. Seems like "LD_RUN_PATH" is the more specific -R permutation
> of this method. Although if there is an -R set, that overrides.
> Hmmmm...
LD_RUN_PATH is somewhat more portable, while LD_OPTIONS is a nice and
incompatible interface for your private use.
There are Makefiles which will set LD_RUN_PATH (products of imake, there
might be more of them). But setting -R overrides. That's good. Control
should belong to the user and not to some disgusting product of a
disgusting product of some unreadable script.