Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Help:bash: mpirun: command not found...

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

Huanglu

New member
Dear all,
I am trying to install WRFV3.9.1.1 in Centos7 platform but while building libraries some errors are occurring. Here, I am posting the errors occurred during installation:
[huanglu@ynhky ~]$ mpirun
bash: mpirun: command not found...
[huanglu@ynhky ~]$ which mpirun
/usr/bin/which: no mpirun in (/home/huanglu/tool/jasper-1.900.1/bin:/home/huanglu/tool/jasper-1.900.1/lib:/home/huanglu/tool/jasper-1.900.1/include:/home/huanglu/tool/jasper-1.900.1/man:{/home/huanglu/tool/libpng-1.2.50/bin:/home/huanglu/tool/libpng-1.2.50/lib:/home/huanglu/tool/libpng-1.2.50/include:{/home/huanglu/tool/zlib-1.2.7/lib:/home/huanglu/tool/zlib-1.2.7/include:{/home/huanglu/tool/netcdf-4.1.3/bin:/home/huanglu/tool/netcdf-4.1.3/lib:/home/huanglu/tool/netcdf-4.1.3/include:{/home/huanglu/tool/mpich-3.1.4/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin}}}}:/home/huanglu/.local/bin:/home/huanglu/bin)
[huanglu@ynhky ~]$ which mpicc
/usr/bin/which: no mpicc in (/home/huanglu/tool/jasper-1.900.1/bin:/home/huanglu/tool/jasper-1.900.1/lib:/home/huanglu/tool/jasper-1.900.1/include:/home/huanglu/tool/jasper-1.900.1/man:{/home/huanglu/tool/libpng-1.2.50/bin:/home/huanglu/tool/libpng-1.2.50/lib:/home/huanglu/tool/libpng-1.2.50/include:{/home/huanglu/tool/zlib-1.2.7/lib:/home/huanglu/tool/zlib-1.2.7/include:{/home/huanglu/tool/netcdf-4.1.3/bin:/home/huanglu/tool/netcdf-4.1.3/lib:/home/huanglu/tool/netcdf-4.1.3/include:{/home/huanglu/tool/mpich-3.1.4/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin}}}}:/home/huanglu/.local/bin:/home/huanglu/bin)
[huanglu@ynhky ~]$ which mpif90
/usr/bin/which: no mpif90 in (/home/huanglu/tool/jasper-1.900.1/bin:/home/huanglu/tool/jasper-1.900.1/lib:/home/huanglu/tool/jasper-1.900.1/include:/home/huanglu/tool/jasper-1.900.1/man:{/home/huanglu/tool/libpng-1.2.50/bin:/home/huanglu/tool/libpng-1.2.50/lib:/home/huanglu/tool/libpng-1.2.50/include:{/home/huanglu/tool/zlib-1.2.7/lib:/home/huanglu/tool/zlib-1.2.7/include:{/home/huanglu/tool/netcdf-4.1.3/bin:/home/huanglu/tool/netcdf-4.1.3/lib:/home/huanglu/tool/netcdf-4.1.3/include:{/home/huanglu/tool/mpich-3.1.4/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin}}}}:/home/huanglu/.local/bin:/home/huanglu/bin)
[huanglu@ynhky ~]$ cd /home/huanglu/tool/mpich-3.1.4/bin
[huanglu@ynhky bin]$ ls
hydra_nameserver hydra_pmi_proxy mpicc mpicxx mpiexec.hydra mpif90 mpirun parkill
hydra_persist mpic++ mpichversion mpiexec mpif77 mpifort mpivars

I have added the path of mpich in .bashrc, MPI compilers is in my PATH enviroment variable.
#MPICH#
PATH=/home/huanglu/tool/mpich-3.1.4/bin:$PATH
export PATH

[huanglu@ynhky ~]$ echo $PATH
/home/huanglu/tool/jasper-1.900.1/bin:/home/huanglu/tool/jasper-1.900.1/lib:/home/huanglu/tool/jasper-1.900.1/include:/home/huanglu/tool/jasper-1.900.1/man:{/home/huanglu/tool/libpng-1.2.50/bin:/home/huanglu/tool/libpng-1.2.50/lib:/home/huanglu/tool/libpng-1.2.50/include:{/home/huanglu/tool/zlib-1.2.7/lib:/home/huanglu/tool/zlib-1.2.7/include:{/home/huanglu/tool/netcdf-4.1.3/bin:/home/huanglu/tool/netcdf-4.1.3/lib:/home/huanglu/tool/netcdf-4.1.3/include:{/home/huanglu/tool/mpich-3.1.4/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin}}}}:/home/huanglu/.local/bin:/home/huanglu/bin

Can you give the possible solutions to resolve this problem? Many thanks.

Sincerely yours,
Huanglu
 
Hi,

The only thing I can think of is that perhaps the files are not built correctly within the /home/huanglu/tool/mpich-3.1.4/bin/ directory, but I'm not sure. Unfortunately this seems to be a problem with your environment, and is not related to a problem with the WRF model, so you will need to discuss the issue with your systems administrator at your institution. When you figure out the problem, post it here (if you don't mind) so that it may help others in the future.
 
Thanks for your answer, I checked the config.log and I found errors about gcc, g++ and gfrotran. I think my mpich may not install successfully. Here I post part of the file config.log. I'll appreciate it if you could give me any advice.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by MPICH configure 3.1.4, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --prefix=/home/huanglu/tool/mpich-3.1.4

## --------- ##
## Platform. ##
## --------- ##

hostname = ynhky.hkydomain
uname -m = x86_64
uname -r = 3.10.0-327.el7.x86_64
uname -s = Linux
uname -v = #1 SMP Thu Nov 19 22:10:57 UTC 2015

/usr/bin/uname -p = x86_64
/bin/uname -X = unknown

/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /home/huanglu/tool/jasper-1.900.1/bin
PATH: /home/huanglu/tool/jasper-1.900.1/lib
PATH: /home/huanglu/tool/jasper-1.900.1/include
PATH: /home/huanglu/tool/jasper-1.900.1/man
PATH: {/home/huanglu/tool/libpng-1.2.50/bin
PATH: /home/huanglu/tool/libpng-1.2.50/lib
PATH: /home/huanglu/tool/libpng-1.2.50/include
PATH: {/home/huanglu/tool/zlib-1.2.7/lib
PATH: /home/huanglu/tool/zlib-1.2.7/include
PATH: {/home/huanglu/tool/netcdf-4.1.3/bin
PATH: /home/huanglu/tool/netcdf-4.1.3/lib
PATH: /home/huanglu/tool/netcdf-4.1.3/include
PATH: {/home/huanglu/tool/mpich-3.1.4/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/sbin}}}}
PATH: /home/huanglu/.local/bin
PATH: /home/huanglu/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:5110: checking for C compiler version
configure:5119: gcc --version >&5
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5130: $? = 0
configure:5119: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)
configure:5130: $? = 0
configure:5119: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:5130: $? = 4
configure:5119: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:5130: $? = 4
configure:5150: checking whether the C compiler works
configure:5172: gcc conftest.c >&5
configure:5176: $? = 0
configure:5224: result: yes
configure:5227: checking for C compiler default output file name
configure:5229: result: a.out
configure:5235: checking for suffix of executables
configure:5242: gcc -o conftest conftest.c >&5
configure:5246: $? = 0
configure:5268: result:
configure:5290: checking whether we are cross compiling
configure:5298: gcc -o conftest conftest.c >&5
configure:5302: $? = 0
configure:5309: ./conftest
configure:5313: $? = 0
configure:5328: result: no
configure:5333: checking for suffix of object files
configure:5355: gcc -c conftest.c >&5
configure:5359: $? = 0
configure:5380: result: o
configure:5384: checking whether we are using the GNU C compiler
configure:5403: gcc -c conftest.c >&5
configure:5403: $? = 0
configure:5412: result: yes
configure:5421: checking whether gcc accepts -g
configure:5441: gcc -c -g conftest.c >&5
configure:5441: $? = 0
configure:5482: result: yes
configure:5499: checking for gcc option to accept ISO C89
configure:5562: gcc -c conftest.c >&5
configure:5562: $? = 0
configure:5575: result: none needed
configure:5602: checking whether gcc and cc understand -c and -o together
configure:5633: gcc -c conftest.c -o conftest2.o >&5
configure:5637: $? = 0
configure:5643: gcc -c conftest.c -o conftest2.o >&5
configure:5647: $? = 0
configure:5658: cc -c conftest.c >&5
configure:5662: $? = 0
configure:5670: cc -c conftest.c -o conftest2.o >&5
configure:5674: $? = 0
configure:5680: cc -c conftest.c -o conftest2.o >&5
configure:5684: $? = 0
configure:5702: result: yes
configure:5741: checking how to run the C preprocessor
configure:5772: gcc -E conftest.c
configure:5772: $? = 0
configure:5786: gcc -E conftest.c
conftest.c:10:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:5786: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPICH"
| #define PACKAGE_TARNAME "mpich"
| #define PACKAGE_VERSION "3.1.4"
| #define PACKAGE_STRING "MPICH 3.1.4"
| #define PACKAGE_BUGREPORT "mpich-discuss@mcs.anl.gov"
| #define PACKAGE_URL "http://www.mpich.org/"
| #define USE_SMP_COLLECTIVES 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:5811: result: gcc -E
configure:5831: gcc -E conftest.c
configure:5831: $? = 0
configure:5845: gcc -E conftest.c
conftest.c:10:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:5845: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPICH"
| #define PACKAGE_TARNAME "mpich"
| #define PACKAGE_VERSION "3.1.4"
| #define PACKAGE_STRING "MPICH 3.1.4"
| #define PACKAGE_BUGREPORT "mpich-discuss@mcs.anl.gov"
| #define PACKAGE_URL "http://www.mpich.org/"
| #define USE_SMP_COLLECTIVES 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:5905: checking for a BSD-compatible install
configure:5973: result: /usr/bin/install -c
configure:5984: checking whether build environment is sane
configure:6039: result: yes
configure:6187: checking for a thread-safe mkdir -p
configure:6226: result: /usr/bin/mkdir -p
configure:6233: checking for gawk
configure:6249: found /usr/bin/gawk
configure:6260: result: gawk
configure:6271: checking whether make sets $(MAKE)
configure:6293: result: yes
configure:6323: checking for style of include used by make
configure:6351: result: GNU
configure:6385: checking whether make supports nested variables
configure:6402: result: yes
configure:6482: checking dependency style of gcc
configure:6593: result: gcc3
configure:6610: checking whether to enable maintainer-specific portions of Makefiles
configure:6619: result: yes
configure:6683: checking for ar
configure:6699: found /usr/bin/ar
configure:6710: result: ar
configure:6736: checking the archiver (ar) interface
configure:6746: gcc -c conftest.c >&5
configure:6746: $? = 0
configure:6748: ar cru libconftest.a conftest.o >&5
configure:6751: $? = 0
configure:6774: result: ar
configure:6824: checking build system type
configure:6838: result: x86_64-unknown-linux-gnu
configure:6858: checking host system type
configure:6871: result: x86_64-unknown-linux-gnu
configure:6912: checking how to print strings
configure:6939: result: printf
configure:6960: checking for a sed that does not truncate output
configure:7024: result: /usr/bin/sed
configure:7042: checking for grep that handles long lines and -e
configure:7100: result: /usr/bin/grep
configure:7105: checking for egrep
configure:7167: result: /usr/bin/grep -E
configure:7172: checking for fgrep
configure:7234: result: /usr/bin/grep -F
configure:7269: checking for ld used by gcc
configure:7336: result: /usr/bin/ld
configure:7343: checking if the linker (/usr/bin/ld) is GNU ld
configure:7358: result: yes
configure:7370: checking for BSD- or MS-compatible name lister (nm)
configure:7419: result: /usr/bin/nm -B
configure:7549: checking the name lister (/usr/bin/nm -B) interface
configure:7556: gcc -c conftest.c >&5
configure:7559: /usr/bin/nm -B "conftest.o"
configure:7562: output
0000000000000000 B some_variable
configure:7569: result: BSD nm
configure:7572: checking whether ln -s works
configure:7576: result: yes
configure:7584: checking the maximum length of command line arguments
configure:7714: result: 1572864
configure:7731: checking whether the shell understands some XSI constructs
configure:7741: result: yes
configure:7745: checking whether the shell understands "+="
configure:7751: result: yes
configure:7786: checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format
configure:7826: result: func_convert_file_noop
configure:7833: checking how to convert x86_64-unknown-linux-gnu file names to toolchain format
configure:7853: result: func_convert_file_noop
configure:7860: checking for /usr/bin/ld option to reload object files
configure:7867: result: -r
configure:7941: checking for objdump
configure:7957: found /usr/bin/objdump
configure:7968: result: objdump
configure:8000: checking how to recognize dependent libraries
configure:8202: result: pass_all
configure:8287: checking for dlltool
configure:8317: result: no
configure:8347: checking how to associate runtime and link libraries
configure:8374: result: printf %s\n
configure:8498: checking for archiver @FILE support
configure:8515: gcc -c conftest.c >&5
configure:8515: $? = 0
configure:8518: ar cru libconftest.a @conftest.lst >&5
configure:8521: $? = 0
configure:8526: ar cru libconftest.a @conftest.lst >&5
ar: conftest.o: No such file or directory
configure:8529: $? = 1
configure:8541: result: @
configure:8599: checking for strip
configure:8615: found /usr/bin/strip
configure:8626: result: strip
configure:8698: checking for ranlib
configure:8714: found /usr/bin/ranlib
configure:8725: result: ranlib
configure:8827: checking command to parse /usr/bin/nm -B output from gcc object
configure:8947: gcc -c conftest.c >&5
configure:8950: $? = 0
configure:8954: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:8957: $? = 0
configure:9023: gcc -o conftest conftest.c conftstm.o >&5
configure:9026: $? = 0
configure:9064: result: ok
configure:9101: checking for sysroot
configure:9131: result: no
configure:9208: gcc -c conftest.c >&5
configure:9211: $? = 0
configure:9387: checking for mt
configure:9417: result: no
configure:9437: checking if : is a manifest tool
configure:9443: : '-?'
configure:9451: result: no
configure:10089: checking for ANSI C header files
configure:10109: gcc -c conftest.c >&5
configure:10109: $? = 0
configure:10182: gcc -o conftest conftest.c >&5
configure:10182: $? = 0
configure:10182: ./conftest
configure:10182: $? = 0
configure:10193: result: yes
configure:10206: checking for sys/types.h
configure:10206: gcc -c conftest.c >&5
configure:10206: $? = 0
configure:10206: result: yes
configure:10206: checking for sys/stat.h
configure:10206: gcc -c conftest.c >&5
configure:10206: $? = 0
configure:10206: result: yes
configure:10206: checking for stdlib.h
configure:10206: gcc -c conftest.c >&5
configure:10206: $? = 0
configure:10206: result: yes
configure:10206: checking for string.h
configure:10206: gcc -c conftest.c >&5
configure:10206: $? = 0
configure:10206: result: yes
configure:10206: checking for memory.h
configure:10206: gcc -c conftest.c >&5
configure:10206: $? = 0
configure:10206: result: yes
configure:10206: checking for strings.h
configure:10206: gcc -c conftest.c >&5
configure:10206: $? = 0
configure:10206: result: yes
configure:10206: checking for inttypes.h
configure:10206: gcc -c conftest.c >&5
configure:10206: $? = 0
configure:10206: result: yes
configure:10206: checking for stdint.h
configure:10206: gcc -c conftest.c >&5
configure:10206: $? = 0
configure:10206: result: yes
configure:10206: checking for unistd.h
configure:10206: gcc -c conftest.c >&5
configure:10206: $? = 0
configure:10206: result: yes
configure:10220: checking for dlfcn.h
configure:10220: gcc -c conftest.c >&5
configure:10220: $? = 0
configure:10220: result: yes
configure:10425: checking for objdir
configure:10440: result: .libs
configure:10711: checking if gcc supports -fno-rtti -fno-exceptions
configure:10729: gcc -c -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
configure:10733: $? = 0
configure:10746: result: no
configure:11073: checking for gcc option to produce PIC
configure:11080: result: -fPIC -DPIC
configure:11088: checking if gcc PIC flag -fPIC -DPIC works
configure:11106: gcc -c -fPIC -DPIC -DPIC conftest.c >&5
configure:11110: $? = 0
configure:11123: result: yes
configure:11152: checking if gcc static flag -static works
configure:11180: result: yes
configure:11195: checking if gcc supports -c -o file.o
configure:11216: gcc -c -o out/conftest2.o conftest.c >&5
configure:11220: $? = 0
configure:11242: result: yes
configure:11250: checking if gcc supports -c -o file.o
configure:11297: result: yes
configure:11330: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:12483: result: yes
configure:12723: checking dynamic linker characteristics
configure:13234: gcc -o conftest -Wl,-rpath -Wl,/foo conftest.c >&5
configure:13234: $? = 0
configure:13456: result: GNU/Linux ld.so
configure:13563: checking how to hardcode library paths into programs
configure:13588: result: immediate
configure:14128: checking whether stripping libraries is possible
configure:14133: result: yes
configure:14168: checking if libtool supports shared libraries
configure:14170: result: yes
configure:14173: checking whether to build shared libraries
configure:14194: result: no
configure:14197: checking whether to build static libraries
configure:14201: result: yes
configure:14250: checking whether make supports nested variables
configure:14267: result: yes
configure:14415: checking for C++ compiler version
configure:14424: g++ --version >&5
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:14435: $? = 0
configure:14424: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)
configure:14435: $? = 0
configure:14424: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:14435: $? = 4
configure:14424: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:14435: $? = 4
configure:14439: checking whether we are using the GNU C++ compiler
configure:14458: g++ -c conftest.cpp >&5
configure:14458: $? = 0
configure:14467: result: yes
configure:14476: checking whether g++ accepts -g
configure:14496: g++ -c -g conftest.cpp >&5
configure:14496: $? = 0
configure:14537: result: yes
configure:14562: checking dependency style of g++
configure:14673: result: gcc3
configure:14706: checking how to run the C++ preprocessor
configure:14733: g++ -E conftest.cpp
configure:14733: $? = 0
configure:14747: g++ -E conftest.cpp
conftest.cpp:24:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:14747: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPICH"
| #define PACKAGE_TARNAME "mpich"
| #define PACKAGE_VERSION "3.1.4"
| #define PACKAGE_STRING "MPICH 3.1.4"
| #define PACKAGE_BUGREPORT "mpich-discuss@mcs.anl.gov"
| #define PACKAGE_URL "http://www.mpich.org/"
| #define USE_SMP_COLLECTIVES 1
| #define PACKAGE "mpich"
| #define VERSION "3.1.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:14772: result: g++ -E
configure:14792: g++ -E conftest.cpp
configure:14792: $? = 0
configure:14806: g++ -E conftest.cpp
conftest.cpp:24:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^
compilation terminated.
configure:14806: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPICH"
| #define PACKAGE_TARNAME "mpich"
| #define PACKAGE_VERSION "3.1.4"
| #define PACKAGE_STRING "MPICH 3.1.4"
| #define PACKAGE_BUGREPORT "mpich-discuss@mcs.anl.gov"
| #define PACKAGE_URL "http://www.mpich.org/"
| #define USE_SMP_COLLECTIVES 1
| #define PACKAGE "mpich"
| #define VERSION "3.1.4"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:14975: checking for ld used by g++
configure:15042: result: /usr/bin/ld -m elf_x86_64
configure:15049: checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld
configure:15064: result: yes
configure:15119: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:16124: result: yes
configure:16160: g++ -c conftest.cpp >&5
configure:16163: $? = 0
configure:16683: checking for g++ option to produce PIC
configure:16690: result: -fPIC -DPIC
configure:16698: checking if g++ PIC flag -fPIC -DPIC works
configure:16716: g++ -c -fPIC -DPIC -DPIC conftest.cpp >&5
configure:16720: $? = 0
configure:16733: result: yes
configure:16756: checking if g++ static flag -static works
configure:16784: result: no
configure:16796: checking if g++ supports -c -o file.o
configure:16817: g++ -c -o out/conftest2.o conftest.cpp >&5
configure:16821: $? = 0
configure:16843: result: yes
configure:16848: checking if g++ supports -c -o file.o
configure:16895: result: yes
configure:16925: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:16961: result: yes
configure:17102: checking dynamic linker characteristics
configure:17769: result: GNU/Linux ld.so
configure:17822: checking how to hardcode library paths into programs
configure:17847: result: immediate
configure:17996: checking for Fortran 77 compiler version
configure:18005: gfortran --version >&5
GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

configure:18016: $? = 0
configure:18005: gfortran -v >&5
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)
configure:18016: $? = 0
configure:18005: gfortran -V >&5
gfortran: error: unrecognized command line option '-V'
gfortran: fatal error: no input files
compilation terminated.
configure:18016: $? = 4
configure:18005: gfortran -qversion >&5
gfortran: error: unrecognized command line option '-qversion'
gfortran: fatal error: no input files
compilation terminated.
configure:18016: $? = 4
configure:18025: checking whether we are using the GNU Fortran 77 compiler
configure:18038: gfortran -c -m64 conftest.F >&5
configure:18038: $? = 0
configure:18047: result: yes
configure:18053: checking whether gfortran accepts -g
configure:18064: gfortran -c -g conftest.f >&5
configure:18064: $? = 0
configure:18072: result: yes
configure:18208: checking if libtool supports shared libraries
configure:18210: result: yes
configure:18213: checking whether to build shared libraries
configure:18233: result: no
configure:18236: checking whether to build static libraries
configure:18240: result: yes
configure:18561: checking for gfortran option to produce PIC
configure:18568: result: -fPIC
configure:18576: checking if gfortran PIC flag -fPIC works
configure:18594: gfortran -c -m64 -fPIC conftest.f >&5
configure:18598: $? = 0
configure:18611: result: yes
configure:18634: checking if gfortran static flag -static works
configure:18662: result: no
configure:18674: checking if gfortran supports -c -o file.o
configure:18695: gfortran -c -m64 -o out/conftest2.o conftest.f >&5
configure:18699: $? = 0
configure:18721: result: yes
configure:18726: checking if gfortran supports -c -o file.o
configure:18773: result: yes
configure:18803: checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:19906: result: yes
configure:20047: checking dynamic linker characteristics
configure:20708: result: GNU/Linux ld.so
configure:20761: checking how to hardcode library paths into programs
configure:20786: result: immediate
configure:20928: checking for Fortran compiler version
configure:20937: gfortran --version >&5
GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

configure:20948: $? = 0
configure:20937: gfortran -v >&5
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)
configure:20948: $? = 0
configure:20937: gfortran -V >&5
gfortran: error: unrecognized command line option '-V'
gfortran: fatal error: no input files
compilation terminated.
configure:20948: $? = 4
configure:20937: gfortran -qversion >&5
gfortran: error: unrecognized command line option '-qversion'
gfortran: fatal error: no input files
compilation terminated.
configure:20948: $? = 4
configure:20957: checking whether we are using the GNU Fortran compiler
configure:20970: gfortran -c -m64 conftest.F >&5
configure:20970: $? = 0
configure:20979: result: yes
configure:20985: checking whether gfortran accepts -g
configure:20996: gfortran -c -g conftest.f >&5
configure:20996: $? = 0
configure:21004: result: yes
configure:21143: checking if libtool supports shared libraries
configure:21145: result: yes
configure:21148: checking whether to build shared libraries
configure:21168: result: no
configure:21171: checking whether to build static libraries
configure:21175: result: yes
configure:21209: gfortran -c -m64 conftest.f >&5
configure:21212: $? = 0
configure:21641: checking for gfortran option to produce PIC
configure:21648: result: -fPIC
configure:21656: checking if gfortran PIC flag -fPIC works
configure:21674: gfortran -c -m64 -fPIC conftest.f >&5
configure:21678: $? = 0
configure:21691: result: yes
configure:21714: checking if gfortran static flag -static works
configure:21742: result: no
configure:21754: checking if gfortran supports -c -o file.o
configure:21775: gfortran -c -m64 -o out/conftest2.o conftest.f >&5
configure:21779: $? = 0
configure:21801: result: yes
configure:21806: checking if gfortran supports -c -o file.o
configure:21853: result: yes
configure:21883: checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:22986: result: yes
configure:23127: checking dynamic linker characteristics
configure:23788: result: GNU/Linux ld.so
configure:23841: checking how to hardcode library paths into programs
configure:23866: result: immediate
configure:25066: RUNNING PREREQ FOR ch3:nemesis
configure:25150: checking for getpagesize
configure:25150: gcc -o conftest conftest.c >&5
configure:25150: $? = 0
configure:25150: result: yes
configure:25779: ===== configuring src/mpl =====
configure:25944: running /bin/sh ./configure --disable-option-checking '--prefix=/home/huanglu/tool/mpich-3.1.4' 'CC=gcc' 'CXX=g++' 'F77=gfortran' 'FFLAGS=-m64 ' 'FC=gfortran' 'FCFLAGS=-m64 ' --cache-file=/dev/null --srcdir=.
configure:25964: ===== done with src/mpl configure =====
configure:25970: sourcing src/mpl/localdefs
WRAPPER_LIBS(='') does not contain '-lmpl', prepending
CPPFLAGS(=' ') does not contain '-I/home/huanglu/instpck/mpich-3.1.4/src/mpl/include', appending
CPPFLAGS(=' -I/home/huanglu/instpck/mpich-3.1.4/src/mpl/include') does not contain '-I/home/huanglu/instpck/mpich-3.1.4/src/mpl/include', appending
LIBS(=' ') does not contain '-lopa', prepending
configure:26050: gcc -o conftest -I/home/huanglu/instpck/mpich-3.1.4/src/mpl/include -I/home/huanglu/instpck/mpich-3.1.4/src/mpl/include conftest.c -lopa >&5
conftest.c:28:28: fatal error: opa_primitives.h: No such file or directory
#include "opa_primitives.h"
^
compilation terminated.
 
Hi,

The first problem I see in the configure is:
gcc: error: unrecognized command line option '-V'

This seems to indicate that there are some very basic functions that are not installed, or not working properly in your environment. If you haven't already been following this page, it may be useful to you:
http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php

We put together this page to ease the trouble of getting the mandatory libraries installed, prior to trying to install WRF/WPS. There are tests provided that will check your environment for the proper settings, and ensure that everything is compatible. However, if you are experiencing trouble with your environment/system, again, this is out of our area of expertise, so you will need to discuss the problem with your system administrator to get everything corrected so that the libraries can be installed. Once you pass all the tests on this page and have the libraries successfully installed, you can attempt to compile WRF. If you have errors at that point, please let us know.
 
Top