MATLAB Linux install error: /tmp/mathworks_15227/java/jre/glnxa64/jre/bin/java: Permission denied

When installing MATLAB on a Linux system, you may encounter the following error message.

Preparing installation files ...
Installing ...
eval: 1: /tmp/mathworks_15227/java/jre/glnxa64/jre/bin/java: Permission denied


My solution turns out to be the following:
  1. From the install package, cd to sys/java/jre/xxx/jre/bin directory. (xxx could be glnx86 or glnxa64 or something similar)
  2. chmod a+x *
  3. Execute the install command once again. You should be all set.

Comments

  1. Thank you very very much! It worked for me too.

    ReplyDelete
  2. And if you see the following error:

    ----------------------
    /tmp/mathworks_26521/sys/java/jre/glnxa64/jre/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
    ----------------------

    apt get install openjdk-7-jre and then run the install script with the -javadir option as /usr/lib/jvm/java-7-openjdk-amd64/jre

    See http://askubuntu.com/questions/151826/how-to-fix-java-problem-installing-matlab-2012a-64-bit-in-ubuntu-12-04-64-bit

    ReplyDelete
  3. ./install: line 713: /tmp/mathworks_10694/sys/java/jre/glnxa64/jre/bin/java: cannot execute binary file

    ReplyDelete
  4. ./install: line 713: /tmp/mathworks_10694/sys/java/jre/glnxa64/jre/bin/java: cannot execute binary file

    ReplyDelete
  5. i face problem during installing matlab on centos6, help me

    ./install: line 713: /tmp/mathworks_10694/sys/java/jre/glnxa64/jre/bin/java: cannot execute binary file

    ReplyDelete
    Replies
    1. Did you do step 1 and step 2 before install? If not, use a root account or at least put "sudo" do them before you try the install again.
      When you install, try to use a root account or at least put "sudo" before the install command. You may need the root account to install the program.

      Delete

Post a Comment

Popular posts from this blog

Using PlayStation 1 Densha de Go controller on emulators

Using PS1/PC Densha de Go! controller SLPH-00051/TCPP-20001/DGOC-44U on PS4/Switch Densha de Go!!

Play octoshape stream on windows with VLC player