проблемы с установкой компилятора Matlab

Я пытаюсь запустить компилятор на MATLAB, но все идет не так, как ожидалось. Как правильно установить MATLAB и как проверить, что именно не так. У меня есть версия MATLAB r2013a.

Я сделал следующим образом:

Я скачал файл SDK 7.1 сВот

папка назначения для инструментов:C:\Program Files\Microsoft SDKs\Windows\v7.1папка назначения для образцов:C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples

Я добавил свои каталоги компилятора в среду пути

Панель управления -> Система -> «Дополнительно» -> «Переменные среды».новая системная переменная с именем "MSSdk".значение этой переменной: C: \ Program Files \ Microsoft SDKs \ Windows \ v7.1закройте и перезапустите MATLAB

Затем я попытался настроить MATLAB, используя следующие шаги и используяmex -setup команда:

после выбораn По "хотите ли вы, чтобы mex обнаружил установленные компиляторы", я получил список компиляторов (см. комментарий выше). Я выбрал17:

[1] Intel C++ 13.0 (with Microsoft Software Development Kit (SDK) linker) 
[2] Intel C++ 13.0 (with Microsoft Visual C++ 2010 linker) 
[3] Intel C++ 13.0 (with Microsoft Visual C++ 2012 linker) 
[4] Intel C++ 12.0 (with Microsoft Software Development Kit (SDK) linker) 
[5] Intel C++ 12.0 (with Microsoft Visual C++ 2008 SP1 linker) 
[6] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker) 
[7] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker) 
[8] Intel Visual Fortran 13 (with Microsoft Software Development Kit (SDK) linker) 
[9] Intel Visual Fortran 13.0 (with Microsoft Visual C++ 2010 linker) 
[10] Intel Visual Fortran 13.0 (with Microsoft Visual C++ 2012 linker) 
[11] Intel Visual Fortran 12 (with Microsoft Software Development Kit (SDK) linker) 
[12] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 SP1 linker) 
[13] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 Shell linker) 
[14] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker) 
[15] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker) 
[16] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker) 
[17] Microsoft Software Development Kit (SDK) 7.1 
[18] Microsoft Visual C++ 2005 SP1 
[19] Microsoft Visual C++ 2008 SP1 
[20] Microsoft Visual C++ 2010 
[21] Microsoft Visual C++ 2012 

Следующее предупреждение:

The default location for Microsoft Software Development Kit (SDK) compiler is:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0"
but either that directory does not exist or the configuration is invalid.

Вопрос:

Use C:\Program Files (x86)\Microsoft Visual Studio 10.0 anyway [y]/n?

Я выбралn и далC:\Program Files\Microsoft SDKs\Windows\v7.1 как мой новый каталог

вот где это останавливается:

Error: The Microsoft Windows Software Development Kit (SDK) installation is 
         incomplete.  Please be sure that the .NET Framework is installed 
         correctly before attempting to reinstall the SDK. 
РЕДАКТИРОВАТЬ:

Вторую попытку я сделал следующим образом:

Я удалил все файлы Visual Basic (удалив все элементы, перечисленные в программах как Visual Basic).Я переустановил файл SDK снова, но не отмеченные компиляторы Visual C ++ и Microsoft Visual C ++Применитьпластырь от Microsoft на установку SDK 7.1 (если это еще не сделано)Переустановил распространяемые пакеты Visual C ++ 2010: x86 и x64В MATLAB я снова использовалmex -setup

Произошло следующее:

Я выбралy после вопроса:

Would you like mex to locate installed compilers [y]/n?
[1] Microsoft Software Development Kit (SDK) 7.1 in C:\Program Files (x86)\Microsoft Visual Studio 10.0 

Я выбрал1

и тогда я получаю следующие 2 выхода в зависимости от выбораy или жеn спросив, правильно ли это

я выбрал n:

mex: No compiler selected. No action taken. 

************************************************************************** 
  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: 
           httpx://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html  
           Building with the -largeArrayDims option enables the new API. 
************************************************************************** 


Error using mex (line 206)
Unable to complete successfully.

я выбрал у:

*************************************************************************** 
  Warning: MEX-files generated using Microsoft Windows Software Development 
           Kit (SDK) require that Microsoft Visual Studio 2010 run-time  
           libraries be available on the computer they are run on. 
           If you plan to redistribute your MEX-files to other MATLAB 
           users, be sure that they have the run-time libraries. 
*************************************************************************** 


Trying to update options file: C:\Users\Gebruiker\AppData\Roaming\MathWorks\MATLAB\R2013a\mexopts.bat 
From template:              C:\PROGRA~1\MATLAB\R2013a\bin\win64\mexopts\mssdk71opts.bat 

Done . . . 

************************************************************************** 
  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: 
           httpx://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html  
           Building with the -largeArrayDims option enables the new API. 
************************************************************************** 


Error using mex (line 206)
Unable to complete successfully.
РЕДАКТИРОВАТЬ:

Я обнаружил, что проблема, с которой я сталкиваюсь, кажется, связана с проблемой Perl. На короткое время появляется следующее примечание:

"Perl Command Line Interpreter has stopped working"

ЭтотПочта была похожая проблема. Я сделал так, как следует. Я загрузилКлубника перл и сделал несколько замен.

замена всех исполняемых файлов

замена perl .exe файлов

В обеих ситуациях появляется следующее

Can't locate shellwords.pl in @INC (@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib . C:\PROGRA~1\MATLAB\R2013a\bin\) at C:\Program Files\MATLAB\R2013a\bin\mex.pl line 159. 
Error using mex (line 206)
Unable to complete successfully.

замена bin-файла на bin-файл из Strawberry Perl

'"C:\Program Files\MATLAB\R2013a\sys\perl\win32\bin\perl.exe"' is not recognized as an internal or external command, 
operable program or batch file. 
Error using mex (line 206)
Unable to complete successfully.

Однако это не похоже на работу. Так что, похоже, две вещи:

Это не работает таким образом (только один человек утверждал, что он сделал это)Я заменяю неправильные файлы в MATLAB на те, что в Strawberry Perl.

РЕДАКТИРОВАТЬ: В соответствии с рекомендациями я восстановил Perl в Matlab до его оригинальной версии.

Я скачал Visual Studio Express 2012 и пытаюсь заставить это работать. Проблемы все те же.

Ответы на вопрос(2)

Ваш ответ на вопрос