help with installing pymat on linux RH7.1
John J. Lee
jjl at pobox.com
Mon Dec 10 14:07:19 EST 2001
On Sun, 9 Dec 2001, Les Ander wrote:
[...]
> I did the following:
[...]
> step2: g++ -shared -o pymatmodule.so pymat.o
> -L/usr/local/extern/lib/glnx86 -leng -lmx -lmat -lmi -lut
> (matlab libraries are: libeng.so, libmx.so, libmat.so, libmi.so, libut.so)
[...]
> But in the python interpreter when i try to import pymat
> i get :
> ImportError: libeng.so: cannot load shared object file: No such file or
> directory
[...]
You probably need to do one of: 1. set LD_LIBRARY_PATH to include
/usr/local/extern/lib/glnx86, 2. compile the path into the .so (can't
remember how) 3. run ldconfig, after adding /usr/local/extern/lib/glnx86
to its configuration file (/etc/ld.so.conf IIRC). You also need -fPIC in
your first step, I think.
see, for example:
http://www.linuxdoc.org/HOWTO/GCC-HOWTO/
John
More information about the Python-list
mailing list