install matlab from CD as super user

Asked by ktym08

how do I install Matlab from an installation CD as a super user in Ubuntu7.10?
I can see the icon "install", but when click on it, it would not let me proceed because I am not a super user.
thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bhavani Shankar
Solved:
Last query:
Last reply:
Revision history for this message
Best Bhavani Shankar (bhavi) said :
#1

Hello

To get the super user privileges you need to use sudo prefixed to any command..

More Info:

https://help.ubuntu.com/community/RootSudo

I am a BSEE student and I use octave a free replacement for matlab and most people consider octave enough for doing their work..

To install octave

you need to have extra repositories enabled..
To enable all the software repositories do ref this link..

http://www.arsgeek.com/?p=2794

after getting all the required repositories enabled

Type the following command in a terminal (applications -> accessories -> terminal)

sudo aptitude install octave

More Info on octave:

https://help.ubuntu.com/community/Octave

Or you can use scilab

sudo apt-get install scilab

and to run open a terminal and give the command

scilab

Or If you want to install matlab badly follow these steps in the below link:

https://help.ubuntu.com/community/MATLAB

Hope it helps

Bhavani Shankar.

Revision history for this message
ktym08 (kittymama) said :
#2

hello, thanks much for the links -very helpful.

I followed the matlab install link and was able to install from CD.
But when launch for activation, it errors:

 Cannot locate Java Runtime Environment (JRE).
The directory /home/kittymama/sys/java/jre/glnx86/jre does not exist.

I looked into the directory "sys", there is no 'java" under.

I am wondering what has gone wrong and how to fix, any ideas?

thanks

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

OK great..

Install Sun JRE and try out again.. Sun JRE is present in 7.10 repositories..

sudo apt-get install sun-java6-jre

Regards

Bhavani Shankar.

Revision history for this message
ktym08 (kittymama) said :
#4

Thank you for helping me out. Really appreciated.

I tried to install Sun JRE, but it got error.
Here is the detail - let me know what you think:

$ sudo apt-get install sun-java6-jre
[sudo] password for xxxx:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  gcc-3.3-base java-common libstdc++5 odbcinst1debian1 sun-java6-bin unixodbc
Suggested packages:
  equivs sun-java6-plugin ia32-sun-java6-plugin sun-java6-fonts libmyodbc
  odbc-postgresql libct1
Recommended packages:
  gsfonts-x11
The following NEW packages will be installed:
  gcc-3.3-base java-common libstdc++5 odbcinst1debian1 sun-java6-bin
  sun-java6-jre unixodbc
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
E: Could not get lock /var/cache/apt/archives/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the download directory

$

Revision history for this message
ktym08 (kittymama) said :
#5

OK, I figured it out and now it works.
I had a broken Java package, and it won't install properly through the terminal command only.
Had to install through Application-> Adds/Remove, to install java6.
I found this link helpful (substitute java5 with java6):

https://jdk-distros.dev.java.net/ubuntu.html

Many thanks to Bhavani Shankar for his helps, really appreciated.

Revision history for this message
ktym08 (kittymama) said :
#6

Thanks Bhavani Shankar, that solved my question.