Thread Subject: matlab and linux

Subject: matlab and linux

From: JLR

Date: 8 Sep, 2001 01:21:51

Message: 1 of 10

Anyone running matlab on a linux system? I successfully completed
installation, but when I try to run matlab, I get the following response:
bash: matlab: command not found

it's like it's not recognizing matlab as an executable, and thinks i'm
issuing a command instead. any help appreciated

Subject: matlab and linux

From: Joshua Baker-LePain

Date: 8 Sep, 2001 02:17:38

Message: 2 of 10

JLR <jeff.l.roberts@home.com> wrote:
> Anyone running matlab on a linux system? I successfully completed

Err, you could say that. It runs far faster than under 'Doze on the
same hardware, too. :)

> installation, but when I try to run matlab, I get the following response:
> bash: matlab: command not found

> it's like it's not recognizing matlab as an executable, and thinks i'm
> issuing a command instead. any help appreciated

No, the issue is that wherever the install put the "matlab" executable
is not in your path. Did you have it create symbolic links
in /usr/local/bin (it asks you during the install)?

You have two options:

1) Find the matlab executable, and run it by specifying the full path, e.g.:

/usr/local/matlab6/bin/matlab -nojvm

2) Put in the symbolic links:

ln -s /usr/local/matlab6/bin/matlab /usr/local/bin/matlab
ln -s /usr/local/matlab6/bin/mex /usr/local/bin/mex

I'd go with 2, although it assumes that /usr/local/bin is in your PATH,
which it most likely is.

--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University

Subject: matlab and linux

From: Thomas Ruedas

Date: 8 Sep, 2001 22:10:23

Message: 3 of 10

As a third possibility, the OP could also add /usr/local/matlab6/bin/ to
the PATH in his or in the system-wide profile, e.g.
export PATH=$PATH:/usr/local/matlab6/bin/
in /etc/profile or ~/.profile, respectively.
--
------------------------------------------------------------------------
Thomas Ruedas
Institute of Meteorology and Geophysics, J.W.Goethe University Frankfurt
e-mail: ruedas@geophysik.uni-frankfurt.de
http://www.geophysik.uni-frankfurt.de/~ruedas/
------------------------------------------------------------------------

Subject: matlab and linux

From: JLR

Date: 8 Sep, 2001 22:19:27

Message: 4 of 10

It's not the path. I can go into the same directory where the matlabdoc,
matlab and mex executables are and run anything I want except matlab
itself...documentation works, mex works, but for matlab:
bash: matlab: command not found
puzzling! All executables appear blue text, but matlab appears red...i
don't know what this means.

"Thomas Ruedas" <ruedas@geophysik.uni-frankfurt.de> wrote in message
news:3B9A7B2F.7C9C3540@geophysik.uni-frankfurt.de...
> As a third possibility, the OP could also add /usr/local/matlab6/bin/ to
> the PATH in his or in the system-wide profile, e.g.
> export PATH=$PATH:/usr/local/matlab6/bin/
> in /etc/profile or ~/.profile, respectively.
> --
> ------------------------------------------------------------------------
> Thomas Ruedas
> Institute of Meteorology and Geophysics, J.W.Goethe University Frankfurt
> e-mail: ruedas@geophysik.uni-frankfurt.de
> http://www.geophysik.uni-frankfurt.de/~ruedas/
> ------------------------------------------------------------------------

Subject: matlab and linux

From: Thomas Ruedas

Date: 9 Sep, 2001 01:19:36

Message: 5 of 10

>All executables appear blue text, but matlab appears red...i
>don't know what this means.
This has to do with the settings of LS_OPTIONS, mine e.g. are -N
--color=tty -T 0 and cause dirs to appear blue and executables red.
Are you sure that the permissions of matlab are ok and that the matlab
you are seeing is not a subdirectory or (possibly stale) link?
--
------------------------------------------------------------------------
Thomas Ruedas
Institute of Meteorology and Geophysics, J.W.Goethe University Frankfurt
e-mail: ruedas@geophysik.uni-frankfurt.de
http://www.geophysik.uni-frankfurt.de/~ruedas/
------------------------------------------------------------------------

Subject: matlab and linux

From: Joakim Lubeck

Date: 9 Sep, 2001 09:36:48

Message: 6 of 10

JLR wrote:
>
> It's not the path. I can go into the same directory where the matlabdoc,
> matlab and mex executables are and run anything I want except matlab
> itself...documentation works, mex works, but for matlab:
> bash: matlab: command not found
> puzzling! All executables appear blue text, but matlab appears red...i
> don't know what this means.

Hi,

The problem is probably not related to the path. I don't know
what versions of Matlab and Linux you are using but if you
want to run Matlab 5.3 on a recent Linux distribution you need
to have some old libraries installed to make it work.
You can find a solution for RedHat here

  http://www.mathworks.com/support/solutions/data/26704.shtml

/Joakim

Subject: matlab and linux

From: Joshua Baker-LePain

Date: 10 Sep, 2001 11:26:43

Message: 7 of 10

JLR <jeff.l.roberts@home.com> wrote:
> It's not the path. I can go into the same directory where the matlabdoc,
> matlab and mex executables are and run anything I want except matlab
> itself...documentation works, mex works, but for matlab:
> bash: matlab: command not found

As someone else pointed out, this may have to do with libraries, depeding
on your Linux distro and the version of Matlab. I've also seen that
error when some command in a shell script (which is what that 'matlab'
"executable" is) does not exist.

--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University

Subject: matlab and linux

From: Robert Kuhn

Date: 10 Sep, 2001 13:39:49

Message: 8 of 10

JLR schrieb:

> Anyone running matlab on a linux system? I successfully completed
> installation, but when I try to run matlab, I get the following response:
> bash: matlab: command not found
>
> it's like it's not recognizing matlab as an executable, and thinks i'm
> issuing a command instead. any help appreciated

Please tell us, what

objdump --full-contents --section=.interp ./programmname

says.

If you get something like this:

Contents of section .interp:
 80480f4 2f6c6962 2f6c642d 6c696e75 782e736f /lib/ld-linux.so
 8048104 2e3100 .1.

you have to install shlibs5 from serie 'a' (if you have a suse)

Bae - Robert

Subject: matlab and linux

From: Laurent Perrinet

Date: 13 Sep, 2001 11:34:16

Message: 9 of 10

JLR wrote:
>
> It's not the path. I can go into the same directory where the matlabdoc,
> matlab and mex executables are and run anything I want except matlab
> itself...documentation works, mex works, but for matlab:
> bash: matlab: command not found
> puzzling! All executables appear blue text, but matlab appears red...i
> don't know what this means.
>
it's obvious but have you tried :

"
chmod a+x matlab

./matlab
"


laurent

Subject: matlab and linux

From: Avinash Parnandi

Date: 19 Mar, 2009 15:51:01

Message: 10 of 10

"JLR" <jeff.l.roberts@home.com> wrote in message <PPwm7.180500$k7.42870546@news1.rdc1.tn.home.com>...
> It's not the path. I can go into the same directory where the matlabdoc,
> matlab and mex executables are and run anything I want except matlab
> itself...documentation works, mex works, but for matlab:
> bash: matlab: command not found
> puzzling! All executables appear blue text, but matlab appears red...i
> don't know what this means.

Hi,
The exact same thing happened to me. What I did was to first go to
/usr/local/bin there I right clicked on the 'matlab' tried opening it. IT gave me error that its a broken link & there is the problem. thats why you cannot run matlab from there.

Solution(that worked for me): go the directory where you installed MATLAB, lets assume its matlabroot. then go to the bin folder i.e
cd /
cd /media/disk/matlabroot/bin (here /media/disk/ is the path for my machine) , you`ll see matlab executable(or whatever its called in LINUX )

try running from there, i.e. in terminal type matlab from this directory, it should run.

If it does then update the 'matlab' link in /usr/local/bin to point to this matlab in /media/disk/matlabroot/bin.

Thanks,
Avinash

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
bash matlab com... Avinash Parnandi 19 Mar, 2009 11:55:24
matlab installe... Avinash Parnandi 19 Mar, 2009 11:55:24
rssFeed for this Thread

Contact us at files@mathworks.com