Intel Fortran compiler not found

12 ビュー (過去 30 日間)
Josh G.
Josh G. 2019 年 3 月 29 日
コメント済み: I Cheng 2022 年 8 月 26 日
I'm trying to get Fortran mex file compilation working on Windows 10 in Matlab R2019a. I've got a trial version of Intel Parallel Studio XE 2019 installed and Microsoft Visual Studio 2017 Community Edition installed. When I try mex -v -setup FORTRAN I get an error:
>> mex -v -setup FORTRAN
Verbose mode is on.
... Looking for compiler 'Intel Parallel Studio XE 2015 for Fortran with Microsoft Visual Studio 2015' ...
... Looking for environment variable 'IFORT_COMPILER15' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2015 for Fortran with Microsoft Visual Studio 2015'.
... Looking for compiler 'Intel Parallel Studio XE 2016 for Fortran with Microsoft Visual Studio 2015' ...
... Looking for environment variable 'IFORT_COMPILER16' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2016 for Fortran with Microsoft Visual Studio 2015'.
... Looking for compiler 'Intel Parallel Studio XE 2017 for Fortran with Microsoft Visual Studio 2015' ...
... Looking for environment variable 'IFORT_COMPILER17' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2017 for Fortran with Microsoft Visual Studio 2015'.
... Looking for compiler 'Intel Parallel Studio XE 2017 for Fortran with Microsoft Visual Studio 2017' ...
... Looking for environment variable 'IFORT_COMPILER17' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2017 for Fortran with Microsoft Visual Studio 2017'.
... Looking for compiler 'Intel Parallel Studio XE 2018 for Fortran with Microsoft Visual Studio 2015' ...
... Looking for environment variable 'IFORT_COMPILER18' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2018 for Fortran with Microsoft Visual Studio 2015'.
... Looking for compiler 'Intel Parallel Studio XE 2018 for Fortran with Microsoft Visual Studio 2017' ...
... Looking for environment variable 'IFORT_COMPILER18' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2018 for Fortran with Microsoft Visual Studio 2017'.
... Looking for compiler 'Intel Parallel Studio XE 2019 for Fortran with Microsoft Visual Studio 2015' ...
... Looking for environment variable 'IFORT_COMPILER19' ...Yes ('C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.3.203\windows\').
... Looking for file 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.3.203\windows\Bin\intel64\ifort.exe' ...Yes.
... Looking for folder 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.3.203\windows' ...Yes.
... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 14.0 ...No.
... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 14.0 ...No.
... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 14.0 ...No.
... Looking for registry setting 'HKCU\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 14.0 ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2019 for Fortran with Microsoft Visual Studio 2015'.
... Looking for compiler 'Intel Parallel Studio XE 2019 for Fortran with Microsoft Visual Studio 2017' ...
... Looking for environment variable 'IFORT_COMPILER19' ...Yes ('C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.3.203\windows\').
... Looking for file 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.3.203\windows\Bin\intel64\ifort.exe' ...Yes.
... Looking for folder 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.3.203\windows' ...Yes.
... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 15.0 ...No.
... Looking for registry setting 'HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VS7' 15.0 ...No.
... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7' 15.0 ...Yes ('C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\').
... Executing command 'set "vcroot=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"&for /f "delims= " %a in ('type "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt"') do @if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\%a\bin\HostX64\x64\cl.exe" call echo %vcroot%' ...No.
Did not find installed compiler 'Intel Parallel Studio XE 2019 for Fortran with Microsoft Visual Studio 2017'.
Error using mex
No supported compiler was found. For options, visit https://www.mathworks.com/support/compilers.
Visual Studio apparently was a 30 day trial rather than a full installation (it's expired now and will launch and function for a short time before a popup freezes the program and asks me to buy a license or exit Visual Studio), so that may have something to do with this error. Looking at the output, it looks like it finds the IFORT_COMPILER19 environment variable, the ifort executable, and a registry setting, but it fails on a command to echo the vcroot environment variable. The problem seems to be that C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build doesn't exist; everything up to "Build" does, but Auxiliary only contains a folder called VS for me. Is there a way to get around this?
  2 件のコメント
Josh G.
Josh G. 2019 年 4 月 4 日
Update: I got a copy of Visual Studio 2017 Professional through my company. However, even with a valid, active Visual Studio installation, I'm getting this error. Is there a Visual Studio component that needs to be installed?
I Cheng
I Cheng 2022 年 8 月 26 日
Hi Josh,
Did you manage to solve your error in the end? I am having the same issue of Matlab not able to find the parallel studio fortran compiler.

サインインしてコメントする。

回答 (1 件)

Rylan
Rylan 2019 年 11 月 8 日
It seems you should make sure the c++ part has been installed when you install the Visual Studio such that matlab can detect ifort. Just notice the panel after installation of VS, it will inform you what component has not been installed and also the accompany impact.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by