Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Matlab version 2012. I know there are many threads about this, suggesting to chmod +x the following files (if you are in installation directory):

sys/java/jre/glnx86/jre/bin/java
sys/java/jre/glnxa64/jre/bin/java

I also chmodded the install file in root of installation directory. However, after running sudo ./install I still get:

Preparing installation files ...
Installing ...
./install: 1: eval: /tmp/mathworks_4880/sys/java/jre/glnxa64/jre/bin/java: Permission denied
Finished

How is this possible? :)

share|improve this question

4 Answers

Even at your 64bit system, the installation might as well work out coz i have just successfully installed Matlab2012a in mine... here's what i did.. :

1.in the /matlab-install-files/sys/java/jre/glnx86/jre/bin/java ,i did

 sudo chmod +x ./java

2.within the installation directory:

 sudo chmod +x ./install

3.finally, install by:

 ./install 

or

 sudo ./install
share|improve this answer

Installing Matlab (which is 32-bit) on 64-bit Ubuntu causes this problem. You can try this command and proceed like normal again.

ln -s YOURMATLABFOLDER/sys/java/jre/glnx86 YOURMATLABFOLDER/sys/java/jre/glnxa64
share|improve this answer
This didn't seem to help. See output. – Primož Kralj Sep 6 '12 at 17:58
Then I can't help you I'm afraid. This was the suggestion I got from Mathworks support. Didn't really work for me either. Luckily for me I have to run dual boot on this computer, due to other heavy applications that run under windows only. – Erro Sep 10 '12 at 9:02
Still, thank you. – Primož Kralj Sep 10 '12 at 19:41

I did the following on my 64-bit Ubuntu and it worked.

chmod +x <MATLAB_DIRECTORY>/java/jre/glnx86/jre/bin/java

<MATLAB_DIRECTORY> is the directory where you have all the MATLAB installation files in.

Then, in the install script (<MATLAB_DIRECTORY>/install), change line 441 from

JRE_LOC=

to

JRE_LOC="<MATLAB_DIRECTORY>/java/jre/glnx86/jre/"

And then run ./install in the <MATLAB_DIRECTORY>

share|improve this answer
up vote 0 down vote accepted

I've found the answer, no matter how weird it is. The problem was 64bit OS. When I tried with 32bit, Matlab installation worked and every other app I had previously trouble installing. So now I stick to 32bit.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.