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:
How to verify that mcr is installed on another computer

Subject: How to verify that mcr is installed on another computer

From: Sprinceana

Date: 1 Apr, 2009 16:39:01

Message: 1 of 10

Is there a command on command window to verify that MCR is installed on the computer so that I can create an exe from an m-file using:

>>mcc -m name_file


In my case I have MCR installed but how can I verify that another computer has MCR installed with a command in command window?

Thanks in advance!

Subject: How to verify that mcr is installed on another computer

From: ImageAnalyst

Date: 1 Apr, 2009 18:47:23

Message: 2 of 10

On Apr 1, 12:39=A0pm, "Sprinceana " <mihai...@yahoo.com> wrote:
> Is there a command on command window to verify that MCR is installed on t=
he computer so that I can create an exe from an m-file using:
>
> >>mcc -m name_file
>
> In my case I have MCR installed but how can I verify that another compute=
r has MCR installed with a command in command window?
>
> Thanks in advance!
----------------------------------------------------------------------
If it already has full-blown MATLAB installed (because you're going to
use the command window to check for the run time library), then why do
you want to have the run time library installed? Just wondering.

Subject: How to verify that mcr is installed on another computer

From: Sprinceana

Date: 1 Apr, 2009 20:36:01

Message: 3 of 10

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <72a2941b-53a7-404a-be60-06182947a937@c18g2000prh.googlegroups.com>...
> On Apr 1, 12:39=A0pm, "Sprinceana " <mihai...@yahoo.com> wrote:
> > Is there a command on command window to verify that MCR is installed on t=
> he computer so that I can create an exe from an m-file using:
> >
> > >>mcc -m name_file
> >
> > In my case I have MCR installed but how can I verify that another compute=
> r has MCR installed with a command in command window?
> >
> > Thanks in advance!
> ----------------------------------------------------------------------
> If it already has full-blown MATLAB installed (because you're going to
> use the command window to check for the run time library), then why do
> you want to have the run time library installed? Just wondering.


Because I run the application on other computer that has matlab installed and cannot make exe files using mcc.

Hope you understand that!

Subject: How to verify that mcr is installed on another computer

From: Yuri Geshelin

Date: 1 Apr, 2009 20:55:03

Message: 4 of 10

"Sprinceana " <mihaispr@yahoo.com> wrote in message <gr05b5$r4e$1@fred.mathworks.com>...
> Is there a command on command window to verify that MCR is installed on the computer so that I can create an exe from an m-file using:
>
> >>mcc -m name_file
>
>
> In my case I have MCR installed but how can I verify that another computer has MCR installed with a command in command window?
>
> Thanks in advance!

What exactly happens when you type 'mcc' on that other computer? Does it find MCR or says Undefined function or variable 'mcc'?

Subject: How to verify that mcr is installed on another computer

From: Sprinceana

Date: 1 Apr, 2009 21:41:02

Message: 5 of 10

"Yuri Geshelin" <geshelin@hotmail.com> wrote in message <gr0kb7$d0d$1@fred.mathworks.com>...
> "Sprinceana " <mihaispr@yahoo.com> wrote in message <gr05b5$r4e$1@fred.mathworks.com>...
> > Is there a command on command window to verify that MCR is installed on the computer so that I can create an exe from an m-file using:
> >
> > >>mcc -m name_file
> >
> >
> > In my case I have MCR installed but how can I verify that another computer has MCR installed with a command in command window?
> >
> > Thanks in advance!
>
> What exactly happens when you type 'mcc' on that other computer? Does it find MCR or says Undefined function or variable 'mcc'?

Undefined function or variable mcc:(

Subject: How to verify that mcr is installed on another computer

From: Eric

Date: 1 Apr, 2009 22:10:17

Message: 6 of 10

"Sprinceana " <mihaispr@yahoo.com> wrote in message <gr05b5$r4e$1@fred.mathworks.com>...
> Is there a command on command window to verify that MCR is installed on the computer so that I can create an exe from an m-file using:
>
> >>mcc -m name_file
>
>
> In my case I have MCR installed but how can I verify that another computer has MCR installed with a command in command window?
>
> Thanks in advance!

Try this:

if license('test','Compiler')
     % use mcc here
else
     % no mcc present
end

Subject: How to verify that mcr is installed on another computer

From: ImageAnalyst

Date: 2 Apr, 2009 01:01:51

Message: 7 of 10

On Apr 1, 4:36=A0pm, "Sprinceana " <mihai...@yahoo.com> wrote:
> ImageAnalyst <imageanal...@mailinator.com> wrote in message <72a2941b-53a=
7-404a-be60-06182947a...@c18g2000prh.googlegroups.com>...
> > On Apr 1, 12:39=3DA0pm, "Sprinceana " <mihai...@yahoo.com> wrote:
> > > Is there a command on command window to verify that MCR is installed =
on t=3D
> > he computer so that I can create an exe from an m-file using:
>
> > > >>mcc -m name_file
>
> > > In my case I have MCR installed but how can I verify that another com=
pute=3D
> > r has MCR installed with a command in command window?
>
> > > Thanks in advance!
> > ----------------------------------------------------------------------
> > If it already has full-blown MATLAB installed (because you're going to
> > use the command window to check for the run time library), then why do
> > you want to have the run time library installed? =A0Just wondering.
>
> Because I run the application on other computer that has matlab installed=
 and cannot make exe files using mcc.
>
> Hope you understand that!

------------------------------------------------------------------------
Sprinceana :
Well not from what you said, but from what the others said. They
think that you're wanting to know if a computer has the compiler on it
so that you can compile an executable stand-alone program to deploy
somewhere. I think you confused me because of your terminilogy. This
is how I understand it (and I do this a lot). On your development
computer, you have the full-blown MATLAB development environment. Now
IF you have purchased the compiler package you will have the compiler
itself (a bunch of files), and a file called mcrinstaller.exe. This
file, mcrinstaller.exe, is not the MCR (MATLAB Component Runtime
library) itself, but is actually an installer for it. Now you, as the
developer and deployer, may or may not have installed that MCR on your
development computer. It is not necessary for you. It is only
necessary for your target computer (where you are going to install
your stand-alone executable) to have it installed. So, to summarize,
the developer/deployer must have the compiler (mcc - NOTE: mcc NOT
mcr) and may or may not have the MCR installed. The target computer
must have the MCR installed, and your application (and does not have
full-blown MATLAB or the compiler installed). Moreover, the target
computer must have the same version of the MCR installed as the one
that shipped with your compiler package. Currently the latest is v7.9
so you will have the 7.9 compiler and your end-user must install
version 7.9 of the MCR with the mcrinstaller.exe that you ship along
with your application. So I hope that staightens out your terminilogy
and understanding of the situation.

Now, to determine if this other computer, with full-blown MATLAB, has
the compiler installed, you can just issue the "ver" command in the
command window:
>> ver
If you have the compiler installed, one of the lines will be:
MATLAB Compiler Version 4.9 (R2008b)
(Yes I know it say 4.9 but the v4.9 compiler actually builds an
executable that expects and requires the v7.9 MCR)
Regards,
ImageAnalyst

Subject: How to verify that mcr is installed on another computer

From: Sprinceana

Date: 2 Apr, 2009 10:23:01

Message: 8 of 10

Thank you ImageAnalyst for you generous explanation!


Michael

Subject: How to verify that mcr is installed on another computer

From: Sprinceana

Date: 2 Apr, 2009 10:31:01

Message: 9 of 10

I have matlab compiler v.4.3 I have matlab 7.1 installed an old version:).


How can I find the version needed for mcr?


MATLAB Compiler Version 4.3 from my ver command

>>ver

MATLAB Version 7.1.0.246 (R14) Service Pack 3

Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 2)

Java VM Version: Java 1.5.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode

Subject: How to verify that mcr is installed on another computer

From: UTHM

Date: 7 Oct, 2011 10:24:14

Message: 10 of 10

Thank you for your explaination

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <7bfcec02-b301-4192-8d3c-944b491e704a@z19g2000yqe.googlegroups.com>...
> On Apr 1, 4:36=A0pm, "Sprinceana " <mihai...@yahoo.com> wrote:
> > ImageAnalyst <imageanal...@mailinator.com> wrote in message <72a2941b-53a=
> 7-404a-be60-06182947a...@c18g2000prh.googlegroups.com>...
> > > On Apr 1, 12:39=3DA0pm, "Sprinceana " <mihai...@yahoo.com> wrote:
> > > > Is there a command on command window to verify that MCR is installed =
> on t=3D
> > > he computer so that I can create an exe from an m-file using:
> >
> > > > >>mcc -m name_file
> >
> > > > In my case I have MCR installed but how can I verify that another com=
> pute=3D
> > > r has MCR installed with a command in command window?
> >
> > > > Thanks in advance!
> > > ----------------------------------------------------------------------
> > > If it already has full-blown MATLAB installed (because you're going to
> > > use the command window to check for the run time library), then why do
> > > you want to have the run time library installed? =A0Just wondering.
> >
> > Because I run the application on other computer that has matlab installed=
> and cannot make exe files using mcc.
> >
> > Hope you understand that!
>
> ------------------------------------------------------------------------
> Sprinceana :
> Well not from what you said, but from what the others said. They
> think that you're wanting to know if a computer has the compiler on it
> so that you can compile an executable stand-alone program to deploy
> somewhere. I think you confused me because of your terminilogy. This
> is how I understand it (and I do this a lot). On your development
> computer, you have the full-blown MATLAB development environment. Now
> IF you have purchased the compiler package you will have the compiler
> itself (a bunch of files), and a file called mcrinstaller.exe. This
> file, mcrinstaller.exe, is not the MCR (MATLAB Component Runtime
> library) itself, but is actually an installer for it. Now you, as the
> developer and deployer, may or may not have installed that MCR on your
> development computer. It is not necessary for you. It is only
> necessary for your target computer (where you are going to install
> your stand-alone executable) to have it installed. So, to summarize,
> the developer/deployer must have the compiler (mcc - NOTE: mcc NOT
> mcr) and may or may not have the MCR installed. The target computer
> must have the MCR installed, and your application (and does not have
> full-blown MATLAB or the compiler installed). Moreover, the target
> computer must have the same version of the MCR installed as the one
> that shipped with your compiler package. Currently the latest is v7.9
> so you will have the 7.9 compiler and your end-user must install
> version 7.9 of the MCR with the mcrinstaller.exe that you ship along
> with your application. So I hope that staightens out your terminilogy
> and understanding of the situation.
>
> Now, to determine if this other computer, with full-blown MATLAB, has
> the compiler installed, you can just issue the "ver" command in the
> command window:
> >> ver
> If you have the compiler installed, one of the lines will be:
> MATLAB Compiler Version 4.9 (R2008b)
> (Yes I know it say 4.9 but the v4.9 compiler actually builds an
> executable that expects and requires the v7.9 MCR)
> Regards,
> ImageAnalyst

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