problemas de instalación del compilador matlab
Estoy intentando ejecutar un compilador en MATLAB pero las cosas no salen como se esperaba. ¿Cómo puedo instalar MATLAB correctamente y cómo puedo verificar qué es exactamente lo que no funciona? Tengo la versión MATLAB r2013a.
He hecho lo siguiente:
He descargado el archivo SDK 7.1 deaquí
Carpeta de destino para herramientas:C:\Program Files\Microsoft SDKs\Windows\v7.1
Carpeta de destino para muestras:C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples
He añadido mis directorios del compilador al entorno de ruta
Panel de control -> Sistema -> "Avanzado" -> "Variables de entorno".Nueva variable de sistema con el nombre "MSSdk".valor de esta variable: C: \ Archivos de programa \ Microsoft SDKs \ Windows \ v7.1cerrar y reiniciar MATLABA continuación, intenté configurar MATLAB usando los siguientes pasos y usando lamex -setup
mando:
después de elegirn
por "le gustaría que mex localice los compiladores instalados" obtuve una lista de compiladores (vea el comentario arriba). He seleccionado17
:
[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
Siguiente advertencia:
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.
Pregunta:
Use C:\Program Files (x86)\Microsoft Visual Studio 10.0 anyway [y]/n?
He elegidon
y dioC:\Program Files\Microsoft SDKs\Windows\v7.1
como mi nuevo directorio
Aquí es donde se detiene:
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.
EDITAR:Mi segundo intento lo hice de la siguiente manera:
Eliminé todos los archivos básicos visuales (eliminando todos los elementos enumerados como básicos visuales en los programas)Reinstalé el archivo SDK de nuevo, pero no busqué compiladores de Visual C ++ y Microsoft Visual C ++.Aplica elparche de Microsoft a la instalación del SDK 7.1 (si no lo ha hecho ya)Reinstaló los paquetes redistribuibles de Visual C ++ 2010: x86 y x64En MATLAB utilicé de nuevo.mex -setup
Sucedió lo siguiente:
He elegidoy
después de la pregunta:
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
He elegido1
y
on
después de preguntar si esto es correctoseleccioné 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.
seleccioné 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.
EDITAR:He descubierto que el problema al que me enfrento parece estar aislado de un problema con Perl. Por un breve momento aparece la siguiente nota:
"Perl Command Line Interpreter has stopped working"
Estaenviar Tenía un problema similar. Hice lo siguiente. yo descarguéPerl de fresa e hizo varios reemplazos.
reemplazando todos los archivos exereemplazar los archivos perl .exe
En ambas situaciones aparece lo siguiente.
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.
reemplazar archivo bin con archivo bin de 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.
Sin embargo, esto no parece funcionar. Así que parece ser dos cosas:
No funciona de esa manera (solo una persona afirmó haber hecho esto)Estoy reemplazando los archivos incorrectos en MATLAB con el de Strawberry Perl.EDITAR: según lo recomendado, restauré el perl en matlab a su versión original.
He descargado Visual Studio Express 2012 y tratando de hacer que esto funcione. Los problemas siguen siendo los mismos.