安装Intel fortran编译器
我正在尝试在Windows 10计算机中安装Intel的Fortran编译器工具集(独立安装程序而不是整个Oneapi捆绑包)。我不使用Visual Studio或Visual Studio构建工具,也不喜欢安装它们。但是,我的Intel Fortran编译器安装警告我,如果我不安装Visual Studio或MSVC构建工具,它将不起作用。
我试图将其安装忽略警告,而Oneapi终端未显示在开始菜单中。我尝试从高架命令提示符中手动激活setVars.bat
,并获得了激活回声消息,就像intel ... internive ... Environment Initalized ...
和其他一些线条表示工具及其版本。但是运行时
& IFX
命令我得到..未被认为是内部或外部命令,可操作程序或批处理文件。
消息。
因此,我决定为MS Visual Studio 2022安装构建工具(只是构建工具核心安装,大约90MIB下载),而没有任何其他工作负载。我需要为此安装任何工作负载吗?我想念什么吗?
然后将其添加到路径上,并尝试重新安装编译器。我仍然得到IDE集成失败的错误消息。这次,我注意到setVars.bat
需要MS Visual Studio或Build Tools 2017或2019。因此,我返回,卸载了2022版本并安装了2019年版本,并尝试重新安装编译器,但仍然是不起作用。我仍然得到..未被认为是内部或外部命令,可操作程序或批处理文件。
消息。运行时,即使在手动运行
也是如此。setVars.bat
之后,
谁能帮我找到解决方案。我真的很感激。但是作为临时解决方案,我使用Gfortran编译器安装了MSYS2工具集,但我不满意。 :(
I'm trying to install Intel's Fortran compiler toolset (the standalone installer not the entire OneAPI bundle) in a Windows 10 machine. I do not use Visual Studio or Visual Studio Build Tools and do not fancy installing them either. However my Intel Fortran compiler installation warned me that it will not work if I do not install Visual Studio or MSVC Build Tools.
I tried to install it ignoring the warnings and the OneAPI terminal did not show up in the Start Menu. I tried to manually activate the setvars.bat
from an elevated command prompt, and got the activation echo message that goes like Intel ...environment initialized...
and some more lines stating the tools and their versions. But when running ifort
& ifx
commands I got the ..is not recognized as an internal or external command, operable program or batch file.
message.
So I decided to install the Build Tools for MS Visual Studio 2022 (Just the Build Tools core installation, around 90MiB download) without any additional workloads. Do I need to install any workloads for this? Am I missing something?
Then added it to PATH and tried reinstalling the compiler. I still got the IDE integration failed error message. This time I noticed that the setvars.bat
required MS Visual Studio or Build Tools 2017 or 2019. So I went back, uninstalled the 2022 version and installed the 2019 version and tried reinstalling the compiler but it is still not working. I still get the ..is not recognized as an internal or external command, operable program or batch file.
message. when running ifx or ifort
even after manually running the setvars.bat
.
Can anyone help me find a solution. I would really appreciate it. But as a temporary solution I installed MSYS2 toolset with gfortran compiler but I'm not satisfied. :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论