Probleme bei der Installation des Matlab-Compilers

Ich versuche, einen Compiler unter MATLAB auszuführen, aber die Dinge laufen nicht wie erwartet. Wie kann ich MATLAB richtig installieren und wie kann ich überprüfen, was genau falsch läuft? Ich habe die MATLAB r2013a-Version.

Ich habe wie folgt gemacht:

Ich habe die SDK 7.1-Datei von heruntergeladenHier

Zielordner für Tools:C:\Program Files\Microsoft SDKs\Windows\v7.1Zielordner für Samples:C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples

Ich habe meine Compilerverzeichnisse zur Pfadumgebung hinzugefügt

Systemsteuerung -> System -> "Erweitert" -> "Umgebungsvariablen".neue Systemvariable mit dem Namen "MSSdk".Wert dieser Variablen: C: \ Programme \ Microsoft SDKs \ Windows \ v7.1Schließen Sie MATLAB und starten Sie es neu

Als nächstes habe ich versucht, MATLAB mit den folgenden Schritten und unter Verwendung der zu konfigurierenmex -setup Befehl:

nach der Wahln "Möchten Sie, dass Mexiko installierte Compiler findet?" Ich habe eine Liste von Compilern (siehe Kommentar oben). Ich habe ausgewählt17:

[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 

Folgende Warnung:

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.

Frage:

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

Ich habe gewähltn und gabC:\Program Files\Microsoft SDKs\Windows\v7.1 als mein neues verzeichnis

hier hört es auf:

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. 
BEARBEITEN:

Mein zweiter Versuch habe ich wie folgt gemacht:

Ich habe alle Visual Basic-Dateien entfernt (indem ich alle in Programmen als Visual Basic aufgeführten Elemente entfernt habe)Ich habe die SDK-Datei erneut installiert, aber Visual C ++ - Compiler und Microsoft Visual C ++ deaktiviertWende anPatch von Microsoft auf die SDK 7.1-Installation (falls noch nicht geschehen)Neuinstallation der weiterverteilbaren Visual C ++ 2010-Pakete: x86 und x64In MATLAB habe ich wieder verwendetmex -setup

Folgendes ist passiert:

Ich habe gewählty nach der frage:

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 

Ich habe gewählt1

und dann bekomme ich je nach auswahl die folgenden 2 ausgängey odern nach der frage, ob dies richtig ist

Ich wählte 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.

Ich wählte y:

*************************************************************************** 
  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.
BEARBEITEN:

Ich habe festgestellt, dass das Problem, mit dem ich konfrontiert bin, auf ein Problem mit Perl beschränkt zu sein scheint. Für einen kurzen Moment erscheint der folgende Hinweis:

"Perl Command Line Interpreter has stopped working"

DiesePost hatte ein ähnliches problem. Ich habe wie folgt getan. Ich habe heruntergeladenErdbeer Perl und machte mehrere Ersetzungen.

Ersetzen aller exe-Dateien

Ersetzen von perl .exe-Dateien

In beiden Situationen wird Folgendes angezeigt

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.

Ersetzen der bin-Datei durch die bin-Datei von 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.

Dies scheint jedoch nicht zu funktionieren. Es scheint also zwei Dinge zu sein:

So funktioniert das nicht (nur eine Person hat behauptet, dies getan zu haben)Ich ersetze die falschen Dateien in MATLAB durch die in Strawberry Perl.

BEARBEITEN: Wie empfohlen habe ich das Perl in Matlab auf seine ursprüngliche Version zurückgesetzt.

Ich habe Visual Studio Express 2012 heruntergeladen und versucht, dies zum Laufen zu bringen. Probleme sind immer noch die gleichen.

Antworten auf die Frage(2)

Ihre Antwort auf die Frage