Sad Goblin

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

今天想用Matlab R2013a编译个mex程序,结果由于64位版不自带C++编译器,导致编译失败。由于平时不在这台电脑上写程序,故没有装VS,就想下个免费的Windows SDK 7.1装了了事,结果安装的时候碰到如下问题:

 

安装程序报错:

A problem occurred while installing selected Windows SDK components.

Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.

 

Google之:

http://blogs.msdn.com/b/windowssdk/archive/2009/09/16/windows-7-sdk-setup-common-installation-issues-and-fixes.aspx

发现原因主要是由于Document Explorer安装不成功而导致的。按照第一个链接里边的解决方法做了一遍,结果一点用都没有……于是继续Google:

http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/8f3350f9-0b47-40ae-b070-f2ccbf041875/windows-7-sdk-installation-failure

http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/6e6c8a17-1666-42fa-9b5b-dfc21845d2f9/error-installing-windows-7-sdk-71-with-vs2008-vs2010-premium-on-win-7-32bit

第二个链接里提到:

"Had a similar problem which turned out to be that the SDK 7.1 does NOT install if you have a newer vcredist_x86.exe than version 10.0.30319 of Visual C++ 2010 x86 Redistributable... I had 10.0.30419 installed... removed it through control panel "remove programs" and then the SDK 7.1 installed."

删除Visual C++ 2010 x86 Redistributable所有比10.0.30319新的安装包,再装Windows SDK,终于成功了。

posted on 2013-09-17 19:48  Sad Goblin  阅读(2328)  评论(0编辑  收藏  举报