[petsc-users] Troubles installing PETSc

Justin Dong (Me) jsd1 at rice.edu
Wed Nov 20 18:48:06 CST 2013


Hi all,

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:

> ==========================================
> Building PETSc using CMake with 5 build threads
> ==========================================
> Re-run cmake file: Makefile older than: ../CMakeLists.txt
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /Users/[…]/Classes/CAAMResearch/petsc-3.4.3/arch-darwin-c-debug
> [100%] Built target petsc
> Running /usr/bin/dsymutil on libpetsc
> =========================================
> Now to check if the libraries are working do:
> make PETSC_DIR=/Users/[…]/Classes/CAAMResearch/petsc-3.4.3 PETSC_ARCH=arch-darwin-c-debug test

and if I run the command it tells me to after that, I get:

> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 MPI process
> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2 MPI processes
> Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI process
> Completed test examples

I try this example (http://www.mcs.anl.gov/petsc/documentation/exercises/compiling/index.html) and get this error:

> cc     ex2.c   -o ex2
> ex2.c:13:10: fatal error: 'petscsys.h' file not found
> #include <petscsys.h>
>          ^
> 1 error generated.
> make: *** [ex2] Error 1

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.

Thanks,
Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131120/71b283f5/attachment.html>


More information about the petsc-users mailing list