<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
When I build PNetCDF with <font face="monospace">MPICC=mpicc</font>
and <font face="monospace">mpicc</font> on my<font face="monospace">
$PATH</font>, I see this during the <font face="monospace">configure</font>
phase:<font face="monospace"><br>
</font>
<blockquote><font face="monospace">ENV PATH=${PATH}:/usr/local/bin<br>
ENV MPICC mpicc<br>
...<br>
checking for sed handling option -i ... /usr/bin/sed -i''<br>
<b>checking mpicc under yes... no</b></font><br>
<font face="monospace">configure: error: </font><br>
<font face="monospace">
-----------------------------------------------------------------------</font><br>
<font face="monospace"> Specified MPI C compiler "mpicc"
cannot be found under yes</font><br>
<font face="monospace"> PnetCDF requires a working MPI C
compiler. Please specify the location</font><br>
<font face="monospace"> of an MPI C compiler, either in the
MPICC environment variable</font><br>
<font face="monospace"> (not CC variable) or through
--with-mpi configure flag. Abort.</font><br>
<font face="monospace">
-----------------------------------------------------------------------</font><br>
</blockquote>
I can work around it by making the path absolute<br>
<blockquote><font face="monospace">ENV MPICC /usr/local/bin/mpicc<br>
...</font><font face="monospace"><br>
</font><font face="monospace">checking for sed handling option -i
... /usr/bin/sed -i''<br>
<b>checking whether /usr/local/bin/mpicc exists and is
executable... yes</b><br>
</font></blockquote>
But, based on the first message, I'm thinking there's an incorrect
path-search during the <font face="monospace">configure</font>
phase.<br>
This is with PNetCDF 1.12.2.<br>
</body>
</html>