LD_LIBRARY_PATH not set within tcsh script
everything works fine if I run my program manually.
i have a script written, first line of script is #!/bin/tcsh, and that launches a program written in fortran and compiled with the intel compiler.
my user account is set to tcsh. i source compilervars.csh after logging in and that sets my PATH and LD_LIBRARY_PATH environment variables.
so if i run my program manually, it runs.
but within my tcsh script when that calls my program i get
"error while loading shared libraries: libifport.so.5: cannot open shared object file: No such file or directory"
so i put an echo $LD_LIBRARY_PATH into my script and that shows that environment variable is not set, it's back to what it was prior to when i sourced the intel/compilervars.csh script.
how do I make it so that LD_LIBRARY_PATH contains the correct stuff?
I'm guessing when you launch a script like this it's like a new login process so it only knows what's in /etc/cshrc and /etc/cshrc.local rather than using everything from your current environment?
this is on SLES 11.3 x86_64.
i'm asking because i don't want to edit /etc/csh.cshrc.local at the moment which would affect all users, and I have problems with other software on the system referencing the intel compiler and mkl and stuff, so i was hoping to keep the intel compiler a manual setup.
Last edited by ron7000; 09-02-2014 at 12:57 PM.
|