简体   繁体   中英

Python 2.7 doesn't look for .so libs in $LD_LIBRARY_PATH (OpenSUSE 12.1 x64)

Got a problem with my project on OpenSUSE 12.1:

somehow it ignores the path to libs provided in $LD_LIBRARY_PATH.

The structure of calls is as follows: My python module adds the path to libs to $LD_LIBRARY_PATH, then imports cython module (interface.so) depending on some other corefuncs.so file.

It worked fine on Ubuntu 11.04. Now it starts loading the cython module, but then throws an ImportError: corefuncs.so: no such file or directory.

I can solve the problem by modifying /etc/ld.so.conf and running ldconfig, but can not make Python search through $LD_LIBRARY_PATH, modified within a terminal session.

Are there any suggestions? Thanks!

使用PYTHONPATH而不是LD_LIBRARY_PATH。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM