Matlab / FC5

Questions about BrainVisa usage and installation

Moderators: denghien, riviere

Post Reply
as_dub
Posts: 59
Joined: Fri Aug 19, 2005 4:09 pm
Location: Cleveland, Ohio

Matlab / FC5

Post by as_dub »

Hello !
I have a problem with matlab. Here the "Matlab configuration" part in the log when I launch brainvisa :

Matlab executable: matlab
Matlab executable full path: /usr/local/bin/matlab
opening matlab to guess release version
matlab seems to work. How lucky you are.
Matlab version: 6
pymat module: pymat6
importation failed.
loading default pymat module
Matlab n'est pas disponible

It does the same if I try to force the MatlabRelease and MatlabExecutable...
I do not feel such lucky !! :roll:
I am working on Fedora Core 5, does anybody had this problem before ?

Thank you !
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

Hi,
We have not really tested the packages on FC5 yet. I know that there are some libraries or dynamic linker issues (see this topic) but I don't know about the matlab module. I guess there are also some library problems...
To get more information about the error, try loading it manually in python, after running the setup script of the binary package:
(sh/bash)

Code: Select all

. <SHFJ_pack_path>/bin/SHFJEnvironmentVariables.sh
or (csh/tcsh)

Code: Select all

source <SHFJ_pack_path>/bin/SHFJEnvironmentVariables.csh
then:

Code: Select all

<SHFJ_pack_path>/bin/python
and then, in the python interpreter:

Code: Select all

import pymat6
I hope this will at least be more verbose about the error that occurs.
Denis
as_dub
Posts: 59
Joined: Fri Aug 19, 2005 4:09 pm
Location: Cleveland, Ohio

Post by as_dub »

Thank you Denis. It seems that it miss a librairy... Here is the message I get :
(for both 13 and 14 Matlab releases)

Code: Select all

­­­>>> import pymat7
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: libeng.so: cannot open shared object file: No such file or directory
>>> import pymat6
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: libeng.so: cannot open shared object file: No such file or directory
Do you know what can I do to fix it ?
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

Oh yes I see, I forgot about this "detail"...
Well, now we have 2 matlab modules depending on matlab version, the corresponding matlab libraries cannot be included in the binary package anymore (because both have the same name, matworks hasn't taken care of assigning them distinct version numbers). So you must provide the path to these matlab libraries by yourself.
Matlab7 uses paths like <matlab_base_path>/bin/glnx86
Matlab6 uses paths like <matlab_base_path>/extern/lib/glnx86
You have to add it to your LD_LIBRARY_PATH environment variable before running beainvisa.
I don't know it there is a way to guess these paths from matlab executable (and to make it automatic) or not...
Denis
as_dub
Posts: 59
Joined: Fri Aug 19, 2005 4:09 pm
Location: Cleveland, Ohio

Post by as_dub »

Thank you very much Denis ! it works !
Post Reply