MATLAB Answers

13

Why does the SDK 7.1 installation fail with an "Installation Failed" message on my Windows system?

I am working with MATLAB 7.14 (R2012a) 64-bit. I need to setup a compiler configuration for MATLAB on my system.

When I try to execute the following MATLAB command:

mex -setup

I receive the following error:

 
 No supported SDK or compiler was found on this computer. 
 For a list of supported compilers, see  
 <http://www.mathworks.com/support/compilers/R2012a/win64.html>

If I try to install Microsoft Windows SDK 7.1, a supported compiler for MATLAB 7.14 (R2012a), on my system, the installation fails with the following error message:

12 Answers

Answer by MathWorks Support Team on 6 Aug 2013
 Accepted Answer

This is an issue with Microsoft Windows SDK 7.1. It may occur under two scenarios:

1. If you have Microsoft Visual C++ 2010 SP1 (Express or Professional) installed.

2. If you have Microsoft Visual C++ 2010 redistributable packages (x64 or x86) installed.

The details on the issue from Microsoft are below:

http://support.microsoft.com/kb/2717426

http://support.microsoft.com/kb/2519277

To avoid this issue:

1. Uninstall the Microsoft Visual C++ 2010 redistributable packages (both x86 as well as x64) from “Control Panel” > “Programs and Features”. If you have trouble uninstalling them, see related solution 1-NBI41W at the bottom.

2. Install the Windows SDK 7.1. During installation, under the "Installation Options" menu, UNCHECK the "Visual C++ Compilers" and "Microsoft Visual C++ 2010" components.

3. Apply the SDK 7.1 patch from below:

http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=4422

4. Reinstall the Microsoft Visual C++ 2010 redistributable packages.

x64:

http://www.microsoft.com/en-us/download/details.aspx?id=14632

x86:

http://www.microsoft.com/en-us/download/details.aspx?id=5555

  26 Comments

Thank you very much sir you really saved my future I wish to you the best of the best in your life.

Hi I have a Matlab version R2013a (64bit) installed on a windows 7 (64bit). I followed the same procedure you described several times, but I could not manage to have the "visual C++ 2010 sp1" as a compiler to choose in Matlab! When I type "mex -setup", and I choose to see the compilers already installed on my system, I only get the "Microsoft SDK 7.1". The Matlab does not recognize "visual C++ 2010 sp1" as a compiler! I appreciate any help, since I have been struggling with this issue for a couple of days :( .

Log in to comment.


Answer by Alexander Venus on 30 Jun 2015
Edited by Jan Simon
on 29 Nov 2015

I would like to repeat the comment of Gary Day out here, because it saved the day for me:

I stumbled across a way to install SDK 7.1 without having to uninstall the later 2010 Redistributables!

First dip into the installer Setup\WinSDKRedist_amd64 folder and install WinSDKRedist_amd64.msi (I am on 64bit Win7 but hopefully this will work for 32bit as well)

Then launch the main setup.exe. The installer now recognises part of the SDK is installed and skips the check for later 2010 redistributables and you can select change option and add the remaining items you want installed.

  1 Comment

Fantastic, this worked for me! I had to download the ISO here. Choose the GRMSDKX_EN_DVD.iso for 64-bit and GRMSDK_EN_DVD.iso for 32-bit.

Log in to comment.


Answer by Jan
on 26 Apr 2014

Had the same problem. Followed instructions and completed installation. Did have 'repair' the C++ 2010 packages twice; a notice 'installation failed' popped up after the 1st time for each package. Thanks. Note to MW: would be nice if the installer could take care of this in the future.

  0 Comments

Log in to comment.


Answer by Ivan
on 9 May 2014

Had the same problem, followed the above procedure and it worked, after spending a whole day digging other solutions elsewhere. Why such a simple task should be so overly complicated?

  0 Comments

Log in to comment.


Answer by baran ad
on 16 Jun 2014

I had the same problem. After searching for possible solutions the whole day! finally I got the answer here. Thanks So Much

  0 Comments

Log in to comment.


Answer by Pradeep
on 24 Jun 2014

Faced the same problem as mentioned in the question and the given solution works perfectly ! Many thanks !

  0 Comments

Log in to comment.


Answer by Hamed
on 19 Oct 2014

In 64bit windows 8 and Matlab R2014a, By installing "Microsoft Visual Studio Ultimate 2013 with update 3", it solved. After installation, the "mex -setup" answer is:

>> mex -setup

MEX configured to use 'Microsoft Visual C++ 2013 Professional (C)' for C language compilation.

Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. In the near future you will be required to update your code to utilize the new API. You can find more information about this at: http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.

To choose a different language, select one from the following:

 mex -setup C++ 
 mex -setup FORTRAN

  0 Comments

Log in to comment.


Answer by Samhitha Vadlamani on 26 Nov 2016

Brilliant !!! can't thank you enough

  0 Comments

Log in to comment.


Answer by rawan
on 29 May 2017

Thank You very much

  0 Comments

Log in to comment.


Answer by lily mona on 1 Jun 2017

please i try it and it does not work what can i do please

  1 Comment

Log in to comment.


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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!