[Wien] error while loading shared libraries
Laurence Marks
L-marks at northwestern.edu
Sun Mar 11 17:13:16 CET 2007
In some of the more recent unix releases the at/batch format was
changed to not propogate some environmental variables such as
LD_LIBRARY_PATH -- be aware that the man page may not have been
updated. To work around this there are many possibilities, depending
upon what rights you have:
1) Edit the top level Wien2k run_lapw scripts and add lines to set
LD_LIBRARY_PATH or similar. I would suggest doing something like
adding to all the run scripts
if (-e $bin/local_options) then
source $bin/local_options
endif
Then put what you want into local_options. This will give you a lot of
flexibility. It could even be changed simply to allow individual users
to have different options, e.g. via a file $HOME/.wien_options .
2) Add lines to $WIENROOT/parallel_options -- this is read by
lapw0para, lapw1para and lapw2para so will probably handle most cases.
3) If you have su rights, edit /etc/ld.so.conf so it contains the
appropriate libraries. Even if you do not doing a ssh onto a node and
then "ldd lapw1" will give you an idea about the issues -- see the man
pages for ldd and ldconfig.
On 3/11/07, li wf <liwanf at hotmail.com> wrote:
> Dear Jiang,
>
> Thank you very much for your kind help. Can i just fix it without
> recompiling the code again? Because the library file is there, i dont know
> why the lapw1 can not load it.
>
> Best regards,
>
> Li
>
> _________________________________________________________________
> 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
>
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
>
--
Laurence Marks
Department of Materials Science and Engineering
MSE Rm 2036 Cook Hall
2220 N Campus Drive
Northwestern University
Evanston, IL 60208, USA
Tel: (847) 491-3996 Fax: (847) 491-7820
email: L-marks at northwestern dot edu
Web: www.numis.northwestern.edu
EMM2007 http://ns.crys.ras.ru/EMMM07/
More information about the Wien
mailing list