On 2005.08.25, Olaf Mersmann <[EMAIL PROTECTED]> wrote: > Ok, I plan on setting the -rpaths to the "default" install directory > (/opt/aolserver/ - any objections?) [...]
This is exactly the "danger" of using -R/-rpath. On Solaris, /opt is a popular place to install packages. On Linux, /usr/local is somewhat popular. Other OSes have their own preferences. The reason I personally prefer explicit LD_LIBRARY_PATH specification and NO -rpath is to avoid accidental version mismatches. Let me explain: I usually have at least two or three different versions of AOLserver installed at any time, all in different top-level directories. If I try to start up nsd without specifying LD_LIBRARY_PATH, it will fail to start because it can't find the libs to load. Suppose I had a lib path burned in via -R/-rpath: it is possible (and has actually happened to me at least a few times in the past when I did use -R/-rpath) to start the nsd with libs from a different directory than I expected. This usually results in strange behaviors, which in turn result in many hours of wasted debugging, only to find that, oh, it's running against an old build, or something like that. I run my nsds through a shell script wrapper, so that I can set various ulimit settings, sanitize environment variables such as IFS, PATH, etc. So, LD_LIBRARY_PATH just becomes one of many that get set. -- Dossy -- Dossy Shiobara [EMAIL PROTECTED] | http://dossy.org/ Panoptic Computer Network http://panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70) -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.