Why do I receive /tmp permissions issues when installing MathWorks Products on Linux?

6 views (last 30 days)
Why do I receive permission errors about /tmp when installing MATLAB on Linux? I get errors like these:
./mpm: line 22: /tmp/mathworks_14473/./bin/glnxa64/mpm: Permission denied
ERROR: ld.so: object '/tmp/mathworks_14474/bin/glnxa64/glibc-2.17_shim.so' from LD_PRELOAD cannot be preloaded: ignored.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Jan 2023
Edited: MathWorks Support Team on 11 Jan 2023
This could be caused by a few things:
  1. The user trying to install MathWorks Products does not have permission to modify the folder.
  2. Security software such as SELinux is preventing the user from having full permissions on /tmp and the folder where MATLAB is attempting to be installed.
  3. The /tmp folder is mounted with the noexec option.
The third situation is easy to detect and work around for the duration of the installation:
  1. Check the output from mount to see whether there’s a /tmp mount (mount | grep tmp)
  2. If there is, check whether it has the noexec option set.
  3. If it has that option, remount it with exec. It’ll go back to the way it was on the next reboot. (sudo mount -o remount,exec /tmp)

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!