您的位置:首页 > 编程语言 > MATLAB

Win10 安装SDK解决方法

2016-03-22 04:08 405 查看
【问题描述】

Win10电脑使用MATLAB mex -setup时遇到错误提醒如下:

Error using mex:No supported compiler or SDK was found. 

For options, bisithttp://www.mathworks.com/support/compilers/R2015a/wun64.html

点开链接试图安装Microsoft Windows SDK 7.1时遇到问题如下:

Some Windows SDK components require the RTM .NET Framework 4. Setup detected a pre-release version of .NET Framework 4. If you continue with Setup, these components will not be installed. If you want to install these components, click Cancel, then install
the .NET Framework 4 from https://go.microsoft.com/fwlink/?LinkID=187668 and then rerun Setup.

Click OK to continue.

点开链接试图安装.NET Framework 4,再次遇到问题:

The Microsoft .NET Framework 4 is already part of the operating system. No need to install the .NET Framework 4 redistributable. More information.An equal or higher version of the .NET Framework 4 has already been installed on the computer.

【解决办法】

电脑搜索栏搜 "regedit"(control pannel)进入后进入下列两路径,将Version值从4.6.01038修改到4.0.30319:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Client\Version

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Full\Version

如果遇到不能修改Version值的操作办法:

依次进入两个路径后Edit-->Permission-->Advanced-->Owner change-->根据Permission entries在最后输入用户的Principle(我的是‘Users’)更改后点OK-->将Users的Permissions勾选Full Control-->Apply-->OK之后就可以更改Version Value了

更改后成功安装SDK,之后将以上路径的VersionValue改回原值,peremission改回原状态,完成
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  sdk matlab win10