Skip to Main Content Skip to Search
Accelerating the pace of engineering and science

Why do I receive an error about "libmwins.so" when installing MATLAB R14SP3 or later on Linux machines?


Date Last Modified: Monday, April 5, 2010
Solution ID:   1-1IF4XK
Product:   MATLAB
Reported in Release:   R14SP2
Platform:   Linux
Operating System:   Linux Any
 

Subject:

Why do I receive an error about "libmwins.so" when installing MATLAB R14SP3 or later on Linux machines?

Problem Description:

The installer outputs with the following error message when installing MATLAB:

$MATLAB/update/bin/glnxa64/xsetup: error while loading shared libraries:
$MATLAB/update/bin/glnxa64/libmwins.so: cannot restore segment prot after reloc: Permission denied

The installer abruptly quits at this point.

Solution:

There may be an issue with the SELinux settings on this machine. SELinux may be preventing the installer from starting properly. This problem is appearing in newer kernel distributions with Security Enhanced Linux (SElinux) enabled (mostly found in Fedora Core 4 or higher).

To confirm this, you can temporarily disable SELinux by running this command as root:

/usr/sbin/setenforce 0

Once that command has been run, try the installer again. You should be able to proceed through the installation at this point. Once installed, you can run the command:

/usr/sbin/setenforce 1

To turn SELinux back on. Please keep in mind that running SELinux may prevent MATLAB from starting as well. Please see the related solution: Why do I receive errors relating to the file "libmwlapack" when starting MATLAB R14SP3 or higher on Linux?

 

Related Solutions:

Please provide feedback to help us improve this Solution
Contact support