制作:ifort:commande introuvable

问题描述 投票:0回答:1

我尝试在 Linux Ubuntu 计算机上编译 Fortran 代码,但收到以下错误(以粗体显示):

calcul@gpuserver:~/dp3D/src$ ./makedp3D
Do you want to use standard directory /home/calcul/bin/dp3D/ (y/n) ?y
Using  existing directory: /home/calcul/bin/dp3D/
objects will be in directory objects
objects for openmp option will be in directory objects_openMP
source directory: /home/calcul/dp3D/src/
main file for dp3D: /home/calcul/dp3D/src/main.f
Fortran compiler (ifort gfortran) ?: ifort
Will compile with ifort
Do you want to clean the object directory : (y/n) ?n
***********************************************
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  treating Make_dp3D
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  treating Make_trs_tag_rm
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  treating Make_trs_obj
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  treating Make_dp3D_bc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  treating Make_dp3D_size
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  treating Make_dp3D_conduct
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  treating Make_dp3D_cubic
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Treating main.f90 to obtain 4 threads in dp3D_openMP
Treating trs_tag_rm.f90 to obtain 4 threads in dp3D_openMP
compiling a test version as /home/calcul/bin/dp3De
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  treating Make_dp3De
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
**make : ifort : commande introuvable
make: *** [Make_dp3De:16 : module_numeric_kind.o] Erreur 127
ifort -warn unused -static-intel -openmp  -gen-interfaces nosource -module modules -warn interfaces -c module_numeric_kind.f90 -o objects_openMP/module_numeric_kind.o
Treating main.f90 to obtain 4 threads in dp3D_openMP
Treating trs_tag_rm.f90 to obtain 4 threads in dp3D_openMP**
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

有人可以帮我解决这个问题吗?

我在互联网上寻找了很多解决方案,但没有一个真正帮助我。

makefile module openmp fortran90 intel-fortran
1个回答
0
投票

您收到了

make : ifort : Command not found
错误消息。要解决这个问题,请在 Ubuntu 中安装 Intel Fortran 编译器 ifort:

curl -Lo- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | sudo gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg
sudo tee /etc/apt/sources.list.d/oneAPI.list <<< "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main"
sudo apt update
sudo apt install intel-oneapi-compiler-fortran

~/.bashrc

source /opt/intel/oneapi/setvars.sh > /dev/null
© www.soinside.com 2019 - 2024. All rights reserved.