助教好,
在進行Compile and Run WRF作業時,安裝pNewCDF在這個步驟有跳出問題。
FCFLAGS="-fallow-argument-mismatch -O2 -g" CC=mpicc CXX=mpicxx ./configure MPICC=mpicc MPICXX=mpicxx MPIF77=mpif77 MPIF90=mpif90 --prefix=$APPROOT/opt/pnetcdf-1.12.0
返回Error如下:
checking whether /home/rot/Download/openmpi/bin/mpif77 is a valid MPI compiler … no
configure: WARNING:
“/home/rot/Download/openmpi/bin/mpif77” is not a working MPI Fortran 77 compiler.
Thus, the Fortran feature is disabled.
checking for m4 … no
checking for gm4 … no
configure: error: “m4 utility program is required by PnetCDF”
看起來是gfortran安裝上的問題,可能是因為之前有在根目錄安裝過gcc, gfortran,但基本上還是執行hackmd上提供的指令,想問一下助教我的推論是否正確,還有我是應該要把根目錄的資料砍掉重裝,還是有其他解決方法?
謝謝助教
Charless.