<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>How do you set PATH? Did you quote it? Seems somehow your path end up being yes, likely due to expansion of its previous value.<br><br><div class="gmail_quote">Le 24 octobre 2021 16:30:03 GMT+04:00, Carl Ponder <cponder@nvidia.com> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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>
</blockquote></div></body></html>