I install l_fcompxe_intel64_2011.11.339 on ubuntu12.04 -64bit. When I compile MFIX software with ifort this error occured : make: ifort: command not found. It must be saied that before this error software message that : IFORT enviroment variables are not defined Please add the following in your shell and rerun make_mfix for .cshrc 'source path_to_fce_9.9/bin/ifortvars.csh' for .kshrc or .bashrc 'source path_to_fce_9.0/bin/ifortvars.sh'
make: ifort: command not found on ubuntu12.04 - 64bit
Please have a look at the compiler installation directory - most likely /opt/intel/composer_xe/bin - and look for the compilervars.sh environment configuration script.
I would recommend to add something like
source /opt/intel/ ... /compilervars.sh
to your user account .bashrc to always have the environment set up correctly for the compiler
Thanks, Rob
I add these two line to .bashrc :
# source /opt/intel/composer_xe_2011_sp1.11.339/bin/compilervars.sh
# source /opt/intel/composer_xe_2011_sp1.11.339/bin/compilervars.csh
but, yet that error occur !
root@abbaszade-virtual-machine:~/MFIX/tutorials/FluidBed_DES# sh ../../model/make_mfix
*******************************************
* Creating the MFIX-executable mfix.exe *
* Version 2010-1 *
*******************************************
MFIX directory is /home/abbaszade2/MFIX/model
Do you need SMP version? (y/n) [no]
Do you need DMP version? (y/n) [no]
Do you need debug version? (y/n) [no]
Force re-compilation of source files in run directory? (y/n) [no]
64 bit Linux system detected, please select compiler.
==============================================================
MFIX Compilation directives available for following compilers:
==============================================================
[1] Intel Fortran Compiler (IFORT - FCE for 64 bit)
[2] Intel Fortran Compiler (IFORT - FCE for 64 bit) on AMD Opteron
[3] Portland Group Linux Fortran Compiler (pgf90)
[4] PathScale compiler (pathf90)
[5] Portland Group Linux Fortran Compiler (pgf90) on AMD Opteron
[6] Portland Group Linux Fortran Compiler (pgf90) on Cray XT3 at PSC
[7] Portland Group Linux Fortran Compiler (pgf90) on Cray XT4 at NCCS
[8] PathScale Compiler (pathf90) on Cray XT4 at NCCS
[9] Pathscale Compiler (pathf90) on Cray XT4 at NERSC
[10] IBM Fortran Compiler (xlf90) on Blue Gene at ANL ALCF
[11] gfortran
Select the compiler to compile MFIX? [1] 1
Intel Compiler selected
______ If you get 'ifort: Command not found' _______
IFORT environment variables are not defined
Please add the following in your shell and rerun make_mfix
for .cshrc 'source path_to_fce_9.0/bin/ifortvars.csh'
for .kshrc or .bashrc 'source path_to_fce_9.0/bin/ifortvars.sh'
Compiling with machine-dependent file LINUX_intel.F
Ignore messages such as "Cannot access *.f or *.inc"
ls: cannot access *.f: No such file or directory
ls: cannot access *.inc: No such file or directory
Files from run directory used for making Mfix:
ls: cannot access *.0*: No such file or directory
******************************************************
Preparing files for your serial/smp compilation
******************************************************
Compiling inline files . . .
*******
make -f mfix_l_not.make compare.o eosg.o discretize.o
ifort -c -I. -w -w95 -i_dynamic -convert big_endian -assume byterecl -FR -O3 -axW -ip -fp-model precise -ftz param_mod.f
make: ifort: Command not found
make: *** [param.mod] Error 127
Please wait . . .
make -f mfix_l_not.make mfix.exe
ifort -c -I. -w -w95 -i_dynamic -convert big_endian -assume byterecl -FR -O3 -axW -ip -fp-model precise -ftz param_mod.f
make: ifort: Command not found
make: *** [param.mod] Error 127
*** File mfix.exe NOT created.
I remind that my ubuntu is version12.04 and my IFORT version is 2011.11.339. when I install ifort, it messaged ifort not supported the this version of OS .
what can I do?
Hello,
IIRC the standard shell on Ubuntu is dash (sh is linked to it). I'd recommend to invoke the build via:
root@abbaszade-virtual-machine:~/MFIX/tutorials/FluidBed_DES# /bin/bash ../../model/make_mfix
Btw.: I see you kicked-off the build as user root (which is not good practice). Did you update the .bashrc initialization file for the same user?
Best regards,
Georg Zitzlsberger
Hello,
this looks like a project being tailored for pre-12.x compilers.
First, with 12.x we changed "ifortvars.sh" (and "iccvars.sh") to "compilervars.sh" PLUS argument, which is either "intel64" (64 bit) or "ia32" (32 bit), e.g.:
$ source /opt/intel/composer_xe_2011_sp1.11.339/bin/compilervars.h intel64
You did not use any argument above. To me it looks like "ifort" was found, though. Maybe you did provide an argument in your case.
Second, we also changed the directory structure beginning with Intel MKL 10.3. Before, we had 64 bit libraries in "em64t" sub-directory. Now it's "intel64". Also see:
http://registrationcenter.intel.com/irc_nas/1977/mklnotes_10.3.0.htm
You only need to make sure that Intel MKL libraries are found in the correct directory:
...
-o mfix.exe odepack.a -L
/opt/intel/composer_xe_2011_sp1.11.339/mkl/lib/intel64-lmkl_lapack
-lmkl_em64t -lmkl_core -lvml -lguide -lpthread
Best regards,
Georg Zitzlsberger



