Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Starting MATLAB on linux (Kubunt 9.04)

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Sebastian Gatzka

Date: 2 Jun, 2009 14:10:03

Message: 1 of 16

Hello World.

I recently installed MATLAB into /home/MATLAB on my Kubuntu 9.04 system.
Unfortunately thats where I am stuck, because I can't start MATLAB using the matlab commannd.

I'm pretty new to linux and am woundering whats wrong.
Any ideas?

Greetings.
Sebastian

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Aurelien Queffurust

Date: 3 Jun, 2009 07:57:01

Message: 2 of 16

"Sebastian Gatzka" <sebastian.gatzka.NOSPAM@stud.tu-darmstadt.de> wrote in message <h03brq$iuu$1@fred.mathworks.com>...
> Hello World.
>
> I recently installed MATLAB into /home/MATLAB on my Kubuntu 9.04 system.
> Unfortunately thats where I am stuck, because I can't start MATLAB using the matlab commannd.
>
> I'm pretty new to linux and am woundering whats wrong.
> Any ideas?
>
> Greetings.
> Sebastian

The first thing to check is to see if both your kernel and glibc are supported depending of your MATLAB version:
R2009a:
http://www.mathworks.com/support/sysreq/current_release/linux.html
Previous releases:
http://www.mathworks.com/support/sysreq/previous_releases.html

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Sebastian Gatzka

Date: 3 Jun, 2009 10:56:01

Message: 3 of 16

"Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <h05acd$3be$1@fred.mathworks.com>...
> The first thing to check is to see if both your kernel and glibc are supported depending of your MATLAB version:
> R2009a:
> http://www.mathworks.com/support/sysreq/current_release/linux.html
> Previous releases:
> http://www.mathworks.com/support/sysreq/previous_releases.html

My distribution (Kubuntu 9.04) is not listed for MATLAB R2008a.
And now?

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Aurelien Queffurust

Date: 3 Jun, 2009 12:20:03

Message: 4 of 16

"Sebastian Gatzka" <sebastian.gatzka.NOSPAM@stud.tu-darmstadt.de> wrote in message <h05ks1$fej$1@fred.mathworks.com>...
> "Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <h05acd$3be$1@fred.mathworks.com>...
> > The first thing to check is to see if both your kernel and glibc are supported depending of your MATLAB version:
> > R2009a:
> > http://www.mathworks.com/support/sysreq/current_release/linux.html
> > Previous releases:
> > http://www.mathworks.com/support/sysreq/previous_releases.html
>
> My distribution (Kubuntu 9.04) is not listed for MATLAB R2008a.
> And now?

As I mentionned in my first message and as it is specified for other distributions in the system requirment page you have to check that your Kernel is 2.4.x or 2.6.x and glibc (glibc6) 2.3.4 and above.
To find the Kernel version, use the following MATLAB command:
!uname -a
To find the glibc version, use the following MATLAB command:
!/lib/libc.so.6

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Sebastian Gatzka

Date: 3 Jun, 2009 12:41:02

Message: 5 of 16

"Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <h05ppj$8od$1@fred.mathworks.com>...

>
> As I mentionned in my first message and as it is specified for other distributions in the system requirment page you have to check that your Kernel is 2.4.x or 2.6.x and glibc (glibc6) 2.3.4 and above.
> To find the Kernel version, use the following MATLAB command:
> !uname -a
> To find the glibc version, use the following MATLAB command:
> !/lib/libc.so.6

Ok, but how can I do a MATLAB command, if I don't know how to start up MATLAB?

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Aurelien Queffurust

Date: 3 Jun, 2009 13:00:03

Message: 6 of 16

"Sebastian Gatzka" <sebastian.gatzka.NOSPAM@stud.tu-darmstadt.de> wrote in message <h05r0u$8h$1@fred.mathworks.com>...
> "Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <h05ppj$8od$1@fred.mathworks.com>...
>
> >
> > As I mentionned in my first message and as it is specified for other distributions in the system requirment page you have to check that your Kernel is 2.4.x or 2.6.x and glibc (glibc6) 2.3.4 and above.
> > To find the Kernel version, use the following MATLAB command:
> > !uname -a
> > To find the glibc version, use the following MATLAB command:
> > !/lib/libc.so.6
>
> Ok, but how can I do a MATLAB command, if I don't know how to start up MATLAB?

Oups! These commands can be typed directly in a Linux shell without the bang operator:
uname -a
/lib/libc.so.6

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Sebastian Gatzka

Date: 3 Jun, 2009 13:42:02

Message: 7 of 16

"Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <h05s4j$dmg$1@fred.mathworks.com>...
>
> Oups! These commands can be typed directly in a Linux shell without the bang operator:
> uname -a
> /lib/libc.so.6

Ok. Thank you. This is the information:

sega@deepblue:~$ uname -a
Linux deepblue 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux
sega@deepblue:~$ /lib/libc.so.6
GNU C Library stable release version 2.9, by Roland McGrath et al.
Copyright (C) 2008 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.
Compiled by GNU CC version 4.3.3.
Compiled on a Linux >>2.6.24-16-server<< system on 2009-04-09.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Aurelien Queffurust

Date: 3 Jun, 2009 13:51:01

Message: 8 of 16

"Sebastian Gatzka" <sebastian.gatzka.NOSPAM@stud.tu-darmstadt.de> wrote in message <h05uja$t07$1@fred.mathworks.com>...
> "Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <h05s4j$dmg$1@fred.mathworks.com>...
> >
> > Oups! These commands can be typed directly in a Linux shell without the bang operator:
> > uname -a
> > /lib/libc.so.6
>
> Ok. Thank you. This is the information:
>
> sega@deepblue:~$ uname -a
> Linux deepblue 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux
> sega@deepblue:~$ /lib/libc.so.6
> GNU C Library stable release version 2.9, by Roland McGrath et al.
> Copyright (C) 2008 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.
> Compiled by GNU CC version 4.3.3.
> Compiled on a Linux >>2.6.24-16-server<< system on 2009-04-09.
> Available extensions:
> crypt add-on version 2.1 by Michael Glad and others
> GNU Libidn by Simon Josefsson
> Native POSIX Threads Library by Ulrich Drepper et al
> BIND-8.2.3-T5B
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/libc/bugs.html>.

Ok, it seems good. I don't know if I could help you more . You may contact the install team (technical support MathWorks) .
Just to know, how do you start MATLAB exactly? Have you any error message?

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Sebastian Gatzka

Date: 3 Jun, 2009 14:16:05

Message: 9 of 16

"Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <h05v45$5pb$1@fred.mathworks.com>...

> Ok, it seems good. I don't know if I could help you more . You may contact the install team (technical support MathWorks) .
> Just to know, how do you start MATLAB exactly? Have you any error message?

Im just typing 'matlab' into the terminal.
sega@deepblue:~$ matlab
bash: matlab: command not found

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Steven Lord

Date: 3 Jun, 2009 14:25:04

Message: 10 of 16


"Sebastian Gatzka" <sebastian.gatzka.NOSPAM@stud.tu-darmstadt.de> wrote in
message news:h03brq$iuu$1@fred.mathworks.com...
> Hello World.
>
> I recently installed MATLAB into /home/MATLAB on my Kubuntu 9.04 system.
> Unfortunately thats where I am stuck, because I can't start MATLAB using
> the matlab commannd.
>
> I'm pretty new to linux and am woundering whats wrong.
> Any ideas?

You haven't provided enough information to determine what's happening. When
you say "I can't start MATLAB", what do you mean? Does it start MATLAB, but
the MATLAB session is unresponsive? Does it throw an error in your terminal
window? Does MATLAB start up for a moment and then crash? Does it log you
out of your system? Does it power down your system? Does it knock out
electricity to your entire building?

Have you tried starting MATLAB when your current directory is /home/MATLAB
(using ./matlab)? Does that work? If so, did you tell the installer to
create the symbolic links during step 9 of the installation?

http://www.mathworks.com/access/helpdesk/help/base/install/unix/f0-2970.html#f0-7457

Without the symbolic link, I think the only place from which you're going to
be able to start MATLAB is inside /home/MATLAB. Of course, if you have
permissions, you could create the symbolic link yourself.

--
Steve Lord
slord@mathworks.com

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Aurelien Queffurust

Date: 3 Jun, 2009 14:25:02

Message: 11 of 16

"Sebastian Gatzka" <sebastian.gatzka.NOSPAM@stud.tu-darmstadt.de> wrote in message <h060j5$het$1@fred.mathworks.com>...
> "Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <h05v45$5pb$1@fred.mathworks.com>...
>
> > Ok, it seems good. I don't know if I could help you more . You may contact the install team (technical support MathWorks) .
> > Just to know, how do you start MATLAB exactly? Have you any error message?
>
> Im just typing 'matlab' into the terminal.
> sega@deepblue:~$ matlab
> bash: matlab: command not found

You may run MATLAB by using './' in the matlabroot/bin directory
sega@deepblue:~$ ./matlab

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Ashwini Patankar

Date: 3 Jun, 2009 18:29:43

Message: 12 of 16

On Jun 2, 2:10 pm, "Sebastian Gatzka" <sebastian.gatzka.NOS...@stud.tu-
darmstadt.de> wrote:
> Hello World.
>
> I recently installed MATLAB into /home/MATLAB on my Kubuntu 9.04 system.
> Unfortunately thats where I am stuck, because I can't start MATLAB using the matlab commannd.
>
> I'm pretty new to linux and am woundering whats wrong.
> Any ideas?
>
> Greetings.
> Sebastian

Just to one thing go to root user or super user
$ cd MatlabXXXXx <enter correct name of the matlab directory>
$cd bin <go to bin folder>
$./matlab <run this file >

now your matlab should get run if you will get a blank screen then
feel free to ask for the solution

Njoy Matlab

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Sebastian Gatzka

Date: 3 Jun, 2009 18:53:01

Message: 13 of 16

> Just to one thing go to root user or super user
> $ cd MatlabXXXXx <enter correct name of the matlab directory>
> $cd bin <go to bin folder>
> $./matlab <run this file >

Yes that solved the problem.
As a matter of fact there was an error due to the creation of the symbolic links while the installation. I can remember something about authorization problems.

How can I manage my system to start MATLAB like this when I type 'matlab'.
I thought about putting some 'alias' entry into my .bashrc file?
Well, I'm not that familiar with linux so far.

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Samurai

Date: 3 Jun, 2009 19:02:07

Message: 14 of 16

On Jun 3, 8:53 pm, "Sebastian Gatzka" <sebastian.gatzka.NOS...@stud.tu-
darmstadt.de> wrote:
> > Just to one thing go to root user or super user
> > $ cd MatlabXXXXx   <enter correct name of the matlab directory>
> > $cd bin  <go to bin folder>
> > $./matlab   <run this file >
>
> Yes that solved the problem.
> As a matter of fact there was an error due to the creation of the symbolic links while the installation. I can remember something about authorization problems.
>
> How can I manage my system to start MATLAB like this when I type 'matlab'.
> I thought about putting some 'alias' entry into my .bashrc file?
> Well, I'm not that familiar with linux so far.

Just open a terminal window and type

matlab

:) don't close the window..unless you want to close matlab!

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Shawn

Date: 3 Jun, 2009 19:14:01

Message: 15 of 16

Run this:
gedit ~/.profile

Add this:
PATH=$PATH:$HOME/Matlab/bin
export PATH

Restart X.

You can now get to Matlab by executing the "matlab" command.

"Sebastian Gatzka" <sebastian.gatzka.NOSPAM@stud.tu-darmstadt.de> wrote in message <h03brq$iuu$1@fred.mathworks.com>...
> Hello World.
>
> I recently installed MATLAB into /home/MATLAB on my Kubuntu 9.04 system.
> Unfortunately thats where I am stuck, because I can't start MATLAB using the matlab commannd.
>
> I'm pretty new to linux and am woundering whats wrong.
> Any ideas?
>
> Greetings.
> Sebastian

Subject: Starting MATLAB on linux (Kubunt 9.04)

From: Sebastian Gatzka

Date: 3 Jun, 2009 19:28:02

Message: 16 of 16

"Shawn " <sstecken@princeton.edu> wrote in message <h06i1p$167$1@fred.mathworks.com>...
> Run this:
> gedit ~/.profile
>
> Add this:
> PATH=$PATH:$HOME/Matlab/bin
> export PATH
>
> Restart X.
>
> You can now get to Matlab by executing the "matlab" command.

Thats it! Thank you so very much!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us