1

i have problems installing matlab, while installing it requires installing gcc compiler and java developer kit and gfortran , i've installed all of them but the installation still won't complete :( ,please help me to solve this problem :( thanks


The result of running java -version

java version "1.6.0_24" 
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu2) 
OpenJDK Server VM (build 20.0-b12, mixed mode)

The result of running gcc --version

gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc. 
This is free software; see the source for copying conditions. There is NO 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
αғsнιη
  • 36,350

1 Answers1

1

This page states that, for Java, matlab requires two things, neither of which your system has:

  1. JDK 1.7 (You have 1.6)
  2. The Oracle JDK (you have the OpenJDK) (Note: It doesn't explicitly state this, but it links to the Oracle website)

You can fix both in one step by following the instructions in this askUbuntu answer

For gcc, it wants versoin 4.7 or higher. You have 4.6. See this askUbuntu answer on how to solve that.

I didn't ask for your gfortran version, and I'm unsure of how to get it. Verify that your gfortran is at least 4.7 as well.

Mitch
  • 4,807