<div dir="ltr">Hi, Matt<br><br>Previously I installed petsc on cygwin following the official guide from petsc website. Because I started from cygwin shell, so both' mkdir 'and 'sed' command are transparent for petsc configure script.<br>
<br>But for VC 2005 version, I start from VC 2005 command line prompt, and type: c:\cygwin\bin\bash , then going to the bash shell. I am not sure why in this way the installation script can not see the 'sed' and 'mkdir'. By the way, it also miss python. So I give an absolute path for executing configure.py. Although it starts to run the configure.py script, it misses some command line utilities in sub installation script. <br>
<br>thanks<br><br><br><div class="gmail_quote">On Tue, Aug 12, 2008 at 7:34 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><div><div></div><div class="Wj3C7c">On Tue, Aug 12, 2008 at 5:18 AM, berry <span dir="ltr"><<a href="mailto:lua.byhh@gmail.com" target="_blank">lua.byhh@gmail.com</a>></span> wrote:<br></div></div><div class="gmail_quote">
<div><div></div><div class="Wj3C7c"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hi, <br><br>I am trying to compile PETSC in cygwin for Visual c++ 2005. I follow the guide exactly from here: <a href="http://www-unix.mcs.anl.gov/petsc/petsc-2/documentation/installation.html" target="_blank">http://www-unix.mcs.anl.gov/petsc/petsc-2/documentation/installation.html</a>. <br>
<br>and use below command:<br><br> /usr/bin/python ./config/configure.py --with-cc='win32fe cl --nodetect' --with-fc='win32fe ifort --nodetect' --with-mpi=1 --with-f-blas-lapack=1 --with-hypre=1<br><br> PETSC installation script really starts to run. However, it fails with below errors:<br>
<br><br>================================================================================<br>=<br> Configuring PETSc to compile on your system<br><br>================================================================================<br>
=<br>********************************************************************************<br>*<br> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for detail<br>s):<br>--------------------------------------------------------------------------------<br>
-------<br>Unable to determine host type using /cygdrive/c/cygwin/home/pangshengyong/soft/p<br>etsc-2.3.3-p13/python/BuildSystem/config/packages/config.sub: Could not execute<br>'/bin/sh /cygdrive/c/cygwin/home/pangshengyong/soft/petsc-2.3.3-p13/python/Build<br>
System/config/packages/config.guess':<br>/cygdrive/c/cygwin/home/pangshengyong/soft/petsc-2.3.3-p13/python/BuildSystem/co<br>nfig/packages/config.guess: line 38: sed: command not found<br>/cygdrive/c/cygwin/home/pangshengyong/soft/petsc-2.3.3-p13/python/BuildSystem/co<br>
nfig/packages/config.guess: line 1272: mkdir: command not found<br>/cygdrive/c/cygwin/home/pangshengyong/soft/petsc-2.3.3-p13/python/BuildSystem/co<br>nfig/packages/config.guess: line 1272: mkdir: command not found<br>: cannot create a temporary directory in /tmp<br>
********************************************************************************<br>*<br><br>It seems that the configure script miss to find the correct path. Does anyone could point me out how to set the correct path for configure script please? <br>
<br>Btw: I have successfully compiled petsc library on cygwin for gcc. </div></blockquote></div></div><div><br>I am not sure how you built PETSc on cygwin before. Perhaps a different copy? This<br>error seems to occur because you cygwin is missing the command line utilities<br>
'sed' and 'mkdir'.<br><br> Matt<br> </div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">
<br>Thanks. <br>-- <br>
Pang Shengyong<br>Solidification Simulation Lab, <br>State Key Lab of Mould & Die Technology,<br>Huazhong Univ. of Sci. & Tech. China<br>
</div>
</blockquote></div></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Pang Shengyong<br>Solidification Simulation Lab, <br>State Key Lab of Mould & Die Technology,<br>Huazhong Univ. of Sci. & Tech. China<br>
</div>