On 8/6/05, Oron Peled <[EMAIL PROTECTED]> wrote: > On Friday 05 August 2005 12:59, tinaraj wrote: > > After installing i tried to set the > > LD_LIBRARY_PATH =/opt/WMS/glibc/lib/ > > 1. The previous line was copied from your memory rather than your terminal > (note the space before the '='). > > 2. What you obviously did was to set the library search path to *only* > this single directory.
Nope. LD_LIBRARY_PATH is looked at in addition (and before) the rest of the search path as defined in the cache file and the default path. See ld.so(8). > > > but after i set when I do ls i get the following error > > ls:/opt/WMS/glibc/lib/librt.so.1: version GLIBC_2.2 not found (required > > Naturally, the dynamic loader couldn't find the matching library > for ls(1) or other applications compiled with modern glibc. > > What you need to do is *append* this directory to the list. > You can either: > 1. Append it to /etc/ld.so.conf (if you are root). I wouldn't do that - it sounds like he wanted some sort of a local development/test environment and mistakenly got his shell session "taken over" by it.. > 2. Append it to a full LD_LIBRARY_PATH: > - If it was defined before, than simply: > LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/WMS/glibc/lib > - Otherwise, read /etc/ld.so.conf and build a new > LD_LIBRARY_PATH with all directories (':' separated). > - As a minimum, it should include /usr/lib:/lib Not according to the manual both of us reffer to (mine is on Debian Sarge). What I'd do is to setup a shell script which will set the LD_LIBRARY_PATH, set the prompt to mark the "special environment" and start an interactive shell, maybe: 1. In your regular environment: alias oldgccshell="/bin/bash -rcfile $HOME/.oldgccrc" 2. have something like: export LD_LIBRARY_PATH=/new/path1:/new/path2:$LD_LIBRARY_PATH PS1="oldgcc $PS1" in $HOME/.oldgcc Cheers, --Amos ================================================================To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]