avatar
how to setup lib path?# Unix - 噫吁兮,危乎高哉
s*n
1
i compile some fortran codes as shared library, then call
them from IDL. Now i have to specify those shared lib path
in IDL, is there any method to add the shared lib path to
system default search path, e.g., /opt/lib32, and i don't
want to copy the shared files to system default search path.
anyone has some ideas on this, thanks.
avatar
d*u
2

the variable $LD_LIBRARY_PATH can be set to the your shared library path
like (csh for example) setenv LD_LIBRARY_PATH yourpath:$LD_LIBRARY_PATH

【在 s******n 的大作中提到】
: i compile some fortran codes as shared library, then call
: them from IDL. Now i have to specify those shared lib path
: in IDL, is there any method to add the shared lib path to
: system default search path, e.g., /opt/lib32, and i don't
: want to copy the shared files to system default search path.
: anyone has some ideas on this, thanks.

avatar
s*n
3
thanks so much, it works fine. and i wonder whether this
will overwrite the system default search path?

【在 d*u 的大作中提到】
:
: the variable $LD_LIBRARY_PATH can be set to the your shared library path
: like (csh for example) setenv LD_LIBRARY_PATH yourpath:$LD_LIBRARY_PATH

avatar
s*n
4
ok, i got the following information from sgi's website, thanks for your help,
anyway.
avatar
l*t
5
Another env variable is LIBRARY_PATH. gcc will read it. But I'm not
sure about its priority.

【在 s******n 的大作中提到】
: thanks so much, it works fine. and i wonder whether this
: will overwrite the system default search path?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。