Saturday, March 8, 2008

Installing Matlab 7 on Fedora 7

I will just list common problems and their probable solutions.

Problem 1: The installer does not work.
http://www.mathworks.com/support/solutions/data/1-12E9FJ.html?solution=1-12E9FJ

libXp.so.6: cannot open shared object file: No such file or directory

You need to install "libXp-devel" package.

# yum install libXp-devel

Problem 2:
Why does MATLAB fail to launch on Linux machines with an error about Assertion `c->xlib.lock' failed

http://www.mathworks.com/support/solutions/data/1-54UIFE.html?solution=1-54UIFE



Problem 3: When launching matlab, you may get following error

error while loading shared libraries: /usr/local/matlab73/bin/glnx86/libmwlapack.so: cannot restore segment prot after reloc: Permission denied

There are two solutions - first, you disable SELINUX. The other solution is to allow the permission in SELinux administration itself.

Open the SELinux Administration GUI and set the following Memory Protection Boolean to true.

Allow all unconfirmed executables to use libraries
requiring text relocation that are not labeled texttrel_shlib_t
.

or run following command on console

# chcon -t texrel_shlib_t /usr/local/matlab2006b/bin/glnx86/*.so

No comments: