40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  ATF eLog  Not logged in ELOG logo
Message ID: 1103     Entry time: Wed Oct 6 12:23:44 2010
Author: Alastair 
Type: Computing 
Category: General 
Subject: Installed matlab on WS2 

Installed matlab on WS2 in /usr/local/matlab.

At first when I ran it the following error came up:

/usr/local/matlab/bin/glnxa64/MATLAB: error while loading shared libraries: /usr/local/matlab/bin/glnxa64/../../bin/glnxa64/../../bin/glnxa64/libtbbmalloc.so.2: cannot restore segment prot after reloc: Permission denied

This is because of a problem with SELinux.  Turning SELinux off using /usr/sbin/setenforce 0   allows matlab to run, confirming that this is the problem.  Following the advice on this page:

http://www.mathworks.com/support/solutions/en/data/1-2SGOXN/?solution=1-2SGOXN

I executed the following commands to get it working with SELinux on.

/usr/sbin/setsebool -P allow_execheap=1

chcon -t texrel_shlib_t /usr/local/matlab/bin/glnxa64/*.so*
chcon -t texrel_shlib_t /usr/local/matlab/sys/java/jre/glnxa64/jre/lib/amd64/*.so

It all seems to be happy now.

 

 

ELOG V3.1.3-