<p>
Hello,
</p>
<p>
I want to install pnetcdf-1.11.2 under Ubuntu 18.04 LTS with in PGI compiler. I had sucessfully installed netcdf-4.6.1 and netcdf-fortran-4.4.4. However, I had encountered an error when to configure to install pnetcdf-1.11.2(The same error in pnetcdf-1.12.0):
</p>
<p>
checking size of ptrdiff_t... 8<br>
checking size of ushort... 2<br>
checking size of uint... 4<br>
checking size of MPI_Fint... 4<br>
checking for /usr/bin/nm... /usr/bin/nm -B<br>
checking nm flags...<br>
checking for C-equivalent to Fortran routine "SUB"... sub_<br>
checking for Fortran "integer*1"... yes<br>
checking for Fortran "integer*2"... yes<br>
checking for Fortran "integer*8"... yes<br>
checking if Fortran "integer*1" is ... configure: error: Could not link conftestf.o and conftest.o<br>
</p>
<p>
The environment variables I used was below:
</p>
<p>
CC=mpicc<br>
FC=mpifort<br>
MPICC=mpicc<br>
MPICXX=mpicxx<br>
MPIF77=mpifort<br>
MPIF90=mpifort<br>
</p>
<p>
The attachment is the configure log file. Can anyone help? Thanks!
</p>
<p>
<br>
</p>
<p>
Sincerely,
</p>
<p>
Jiang Lizhi
</p>