s******n 发帖数: 15 | 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. | d*u 发帖数: 613 | 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.
| s******n 发帖数: 15 | 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
| s******n 发帖数: 15 | 4 ok, i got the following information from sgi's website, thanks for your help,
anyway. | l******t 发帖数: 8 | 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?
|
|