Thanks! Problem fixed. -Yifei On Tue, Jun 19, 2012 at 2:27 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> Ok - I think the sources were extracted with a windows tool - and not > cygwin 'tar' - so the scripts [which got extracted in dos format] are > misbehaving. > > >>>>>>> > sbalay at ps3 ~/petsc33/src/ksp/ksp/examples/tutorials > $ unix2dos.exe /home/sbalay/petsc33/bin/mpiexec.uni > unix2dos: converting file /home/sbalay/petsc33/bin/mpiexec.uni to DOS > format ... > > sbalay at ps3 ~/petsc33/src/ksp/ksp/examples/tutorials > $ /home/sbalay/petsc33/bin/mpiexec.uni -n 1 ./ex2 > /home/sbalay/petsc33/bin/mpiexec.uni: line 4: syntax error near unexpected > token `elif' > 'home/sbalay/petsc33/bin/mpiexec.uni: line 4: `elif [ $2 = "1" ]; then > > sbalay at ps3 ~/petsc33/src/ksp/ksp/examples/tutorials > $ dos2unix.exe /home/sbalay/petsc33/bin/mpiexec.uni > dos2unix: converting file /home/sbalay/petsc33/bin/mpiexec.uni to Unix > format ... > > sbalay at ps3 ~/petsc33/src/ksp/ksp/examples/tutorials > $ /home/sbalay/petsc33/bin/mpiexec.uni -n 1 ./ex2 > Norm of error 0.000156044 iterations 6 > > <<<<<<< > > Satish > > > On Tue, 19 Jun 2012, Barry Smith wrote: > > > > > Please run > > > > /bin/sh --version > > > > and send the output > > > > > > On Jun 18, 2012, at 5:21 PM, Yifei Li wrote: > > > > > Hi all, > > > > > > I got the following error when running 'make test': > > > > > > Using PETSC_DIR=/home/liyi0000/petsc-3.3-p1 and > PETSC_ARCH=arch-mswin-c-debug > > > Possible error running C/C++ src/snes/examples/tutorials/ex19 with 1 > MPI process > > > > > > See http://www.mcs.anl.gov/petsc/documentation/faq.html > > > /home/liyi0000/petsc-3.3-p1/bin/mpiexec.uni: line 4: syntax error near > unexpected token 'elif' > > > 'home/liyi0000/petsc-3.3-p1/bin/mpiexec.uni: line 4: 'elif [ $2 = "1" > ]; then > > > > > > > > > Can someone help me with this? Thanks > > > > > > Yifei > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120619/f741ae3e/attachment.html>
