I am new and I got this error trying to configure a package by./configure
:
Platform:
Darwin 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
Fortran compiler:
../configure/ropp_configure_local: line 15: ifort: command not found
C compiler:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c /4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Installation target:
/Users/br/Downloads/ropp-11.0/ifort
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/Users/br/Downloads/ropp-11.0/ropp_utils/missing: Unknown `--is-lightweight' option
Try `/Users/br/Downloads/ropp-11.0/ropp_utils/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-apple-darwin20.3.0
checking host system type... x86_64-apple-darwin20.3.0
checking whether the Fortran compiler works... no
configure: error: in `/Users/br/Downloads/ropp-11.0/ropp_utils':
configure: error: Fortran compiler cannot create executables
See `config.log' for more details
and this is the config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by ropp_utils configure 11.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/Users/br/Downloads/ropp-11.0/ifort
## --------- ##
## Platform. ##
## --------- ##
hostname = sec11-dynip-235.gfz-potsdam.de
uname -m = x86_64
uname -r = 20.3.0
uname -s = Darwin
uname -v = Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64
Kernel configured for up to 12 processors.
6 processors are physically available.
12 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3 4 5 6 7 8 9 10 11
Primary memory available: 16.00 gigabytes
Default processor set: 603 tasks, 2786 threads, 12 processors
Load average: 1.85, Mach factor: 10.14
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Users/br/opt/anaconda3/bin
PATH: /Users/br/opt/anaconda3/condabin
PATH: /Library/Frameworks/Python.framework/Versions/3.9/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/X11/bin
PATH: /Library/Apple/usr/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1914: checking for a BSD-compatible install
configure:1982: result: /usr/bin/install -c
configure:1993: checking whether build environment is sane
configure:2048: result: yes
configure:2086: WARNING: 'missing' script is too old or missing
configure:2199: checking for a thread-safe mkdir -p
configure:2238: result: ./install-sh -c -d
configure:2245: checking for gawk
configure:2275: result: no
configure:2245: checking for mawk
configure:2275: result: no
configure:2245: checking for nawk
configure:2275: result: no
configure:2245: checking for awk
configure:2261: found /usr/bin/awk
configure:2272: result: awk
configure:2283: checking whether make sets $(MAKE)
configure:2305: result: yes
configure:2334: checking whether make supports nested variables
configure:2351: result: yes
configure:2440: checking build system type
configure:2454: result: x86_64-apple-darwin20.3.0
configure:2474: checking host system type
configure:2487: result: x86_64-apple-darwin20.3.0
configure:2617: checking for Fortran compiler version
configure:2626: ifort --version >&5
./configure: line 2628: ifort: command not found
configure:2637: $? = 127
configure:2626: ifort -v >&5
./configure: line 2628: ifort: command not found
configure:2637: $? = 127
configure:2626: ifort -V >&5
./configure: line 2628: ifort: command not found
configure:2637: $? = 127
configure:2626: ifort -qversion >&5
./configure: line 2628: ifort: command not found
configure:2637: $? = 127
configure:2652: checking whether the Fortran compiler works
configure:2674: ifort -O2 -nbs -I/Users/br/Downloads/ropp-11.0/ifort/include -L/Users/br/Downloads/ropp-11.0/ifort/lib -L/Users/br/Downloads/ropp-11.0/ifort/lib64 conftest.f >&5
./configure: line 2676: ifort: command not found
configure:2678: $? = 127
configure:2716: result: no
configure: failed program was:
| program main
|
| end program main
configure:2721: error: in `/Users/br/Downloads/ropp-11.0/ropp_utils':
configure:2723: error: Fortran compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin20.3.0
ac_cv_env_FCFLAGS_set=set
ac_cv_env_FCFLAGS_value='-O2 -nbs -I/Users/br/Downloads/ropp-11.0/ifort/include'
ac_cv_env_FC_set=set
ac_cv_env_FC_value=ifort
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/Users/br/Downloads/ropp-11.0/ifort/lib -L/Users/br/Downloads/ropp-11.0/ifort/lib64'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin20.3.0
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='aclocal-1.13'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_CCFLAGS=''
AM_CPPFLAGS=''
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_FCFLAGS=''
AM_FFLAGS=''
AM_LDFLAGS=''
AM_V='$(V)'
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='automake-1.13'
AWK='awk'
CM_FC_UC_MODNAMES_FALSE=''
CM_FC_UC_MODNAMES_TRUE=''
CM_NATIVE_AIX_FALSE=''
CM_NATIVE_AIX_TRUE=''
CM_NATIVE_HPUX_FALSE=''
CM_NATIVE_HPUX_TRUE=''
CYGPATH_W='echo'
DEFS=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EXEEXT=''
FC='ifort'
FCFLAGS='-O2 -nbs -I/Users/br/Downloads/ropp-11.0/ifort/include'
FCFLAGS_f90=''
FC_BACKSLASH_ESCAPE_FALSE=''
FC_BACKSLASH_ESCAPE_TRUE=''
FC_IS_NAG_FALSE=''
FC_IS_NAG_TRUE=''
FC_IS_XLF_FALSE=''
FC_IS_XLF_TRUE=''
HAVE_SOFA_FALSE=''
HAVE_SOFA_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS='-L/Users/br/Downloads/ropp-11.0/ifort/lib -L/Users/br/Downloads/ropp-11.0/ifort/lib64'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
M4=''
M4_OPTS=''
MAKEINFO='makeinfo'
MKDIR_P='./install-sh -c -d'
NO_TYPESIZES_FALSE=''
NO_TYPESIZES_TRUE=''
OBJEXT=''
PACKAGE='ropp_utils'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='ropp_utils'
PACKAGE_STRING='ropp_utils 11.0'
PACKAGE_TARNAME='ropp_utils'
PACKAGE_URL=''
PACKAGE_VERSION='11.0'
PATH_SEPARATOR=':'
RANLIB=''
ROBODOC=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
SVN2CL=''
VERSION='11.0'
ac_ct_FC=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__isrc=''
am__leading_dot='.'
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin20.3.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin20.3.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin20.3.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin20.3.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/br/Downloads/ropp-11.0/ropp_utils/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/Users/br/Downloads/ropp-11.0/ifort'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "ropp_utils"
#define PACKAGE_TARNAME "ropp_utils"
#define PACKAGE_VERSION "11.0"
#define PACKAGE_STRING "ropp_utils 11.0"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""
#define PACKAGE "ropp_utils"
#define VERSION "11.0"
configure: exit 77
CodePudding user response:
I tried gfortran instead and I get the same error. I set the environment variables by sourcing the environment script using the initialization utility to initialize all the tools in one step by source /opt/intel/oneapi/setvars.sh
and now it works fine, thank you @francescalus and @Vladmir