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
  • Can you copy/paste the results of typing java -version and gcc --version into a command prompt? – Mitch Oct 8 '14 at 19:25
  • 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) ------------------------------------------------------- – Zahra Rahimi Oct 8 '14 at 19:33
  • 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. – Zahra Rahimi Oct 8 '14 at 19:34
  • Matlab probably wants the Oracle JDK as opposed to the OpenJDK – Mitch Oct 8 '14 at 19:40
  • sorry to ask dumb questions but i'm new to linux , what command should i use ? sudo apt-get install what? – Zahra Rahimi Oct 8 '14 at 19:45
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.

  • Just edited it with regards to gcc; you'll need to update that as well – Mitch Oct 8 '14 at 19:49
  • gfortran version : GNU Fortran (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 yes i read your edited comment , thank you :) – Zahra Rahimi Oct 8 '14 at 19:52
  • You'll need to update gfortran as well: packages.ubuntu.com/search?keywords=gfortran – Mitch Oct 8 '14 at 20:10
  • i don't know which one should i install for gfortran :(:(:( , my operating system is ubuntu 12.04 lts 32bit , sorry, can you help me please :( (gcc and g++ and jdk are up to date now, i don't know which one should i install for gfortran) – Zahra Rahimi Oct 9 '14 at 18:27
  • Try just doing sudo apt-get install gfortran – Mitch Oct 9 '14 at 18:39

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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