<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi all,<div><br></div><div>I’ve just installed PETSc and it seems that I don’t get any errors. I type “make” from the command line and this is the end bit of the result:</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"></div><blockquote type="cite"><div style="margin: 0px; font-size: 11px; font-family: Menlo;">==========================================</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Building PETSc using CMake with 5 build threads</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">==========================================</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Re-run cmake file: Makefile older than: ../CMakeLists.txt</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">-- Configuring done</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">-- Generating done</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">-- Build files have been written to: /Users/[…]/Classes/CAAMResearch/petsc-3.4.3/arch-darwin-c-debug</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">[100%] Built target petsc</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Running /usr/bin/dsymutil on libpetsc</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">=========================================</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Now to check if the libraries are working do:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">make PETSC_DIR=/Users/[…]/Classes/CAAMResearch/petsc-3.4.3 PETSC_ARCH=arch-darwin-c-debug test</div></blockquote><br></div><div>and if I run the command it tells me to after that, I get:</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"></div><blockquote type="cite"><div style="margin: 0px; font-size: 11px; font-family: Menlo;">C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 MPI process</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2 MPI processes</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI process</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Completed test examples</div></blockquote><br></div><div>I try this example (<a href="http://www.mcs.anl.gov/petsc/documentation/exercises/compiling/index.html">http://www.mcs.anl.gov/petsc/documentation/exercises/compiling/index.html</a>) and get this error:</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"></div><blockquote type="cite"><div style="margin: 0px; font-size: 11px; font-family: Menlo;">cc     ex2.c   -o ex2</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>ex2.c:13:10: </b><span style="color: #c33720"><b>fatal error: </b></span><b>'petscsys.h' file not found</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#include <petscsys.h></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);"><b>         ^</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">1 error generated.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">make: *** [ex2] Error 1</div></blockquote><br></div><div>I’m working in the PETSc directory so I don’t think it’s an issue with setting the path, but I’m not that great at all of the architecture stuff. If anyone can assist, I’d be grateful.</div><div><br></div><div>Thanks,</div><div>Justin</div></body></html>