Installation error,

35 views
Skip to first unread message

meatball

unread,
Jun 4, 2017, 11:59:35 AM6/4/17
to Salvus
Hi All, 

Error encountered when I was trying to install Salvus in my Mac Pro. I follow the steps in https://salvus.io/installation/#installation-on-osx, everything was just fine until the last step, when I used make -j.  seems like it has a difficult time of locating petsc.h. Can anyone help me with this, or should I just copy the file to every directory the error appears? Thank you so  much.

[ 26%] Building CXX object CMakeFiles/salvusCore.dir/src/cxx/Source/Ricker.cpp.o

/Users/peng/salvus/salvus_wave/src/cxx/Utilities/Options.cpp:14:10: error: 'petsc.h' file not found

      with <angled> include; use "quotes" instead

#include <petsc.h>

         ^~~~~~~~~

         "petsc.h"

In file included from /Users/peng/salvus/salvus_wave/src/cxx/Utilities/Options.cpp:14:

/Users/peng/salvus/salvus_wave/src/cxx/Utilities/petsc.h:5:10: fatal error: 'petscbag.h' file not

      found

#include <petscbag.h>

         ^

[ 28%] Building CXX object CMakeFiles/salvusCore.dir/src/cxx/Source/SourceHdf5.cpp.o

[ 30%] Building CXX object CMakeFiles/salvusCore.dir/src/cxx/Receiver/Receiver.cpp.o

salvus_wave's version number did not change.

[ 31%] Building CXX object CMakeFiles/salvusCore.dir/src/cxx/Utilities/Logging.cpp.o

[ 33%] Building CXX object CMakeFiles/salvusCore.dir/src/cxx/Utilities/PETScExtensions.cpp.o

[ 33%] Built target check_if_version_number_needs_update

[ 34%] Building CXX object CMakeFiles/salvusCore.dir/src/cxx/Utilities/MpiUtilities.cpp.o

In file included from /Users/peng/salvus/salvus_wave/src/cxx/Utilities/PETScExtensions.cpp:14:

/Users/peng/salvus/salvus_wave/include/Utilities/PETScExtensions.h:16:10: fatal error: 'petscsys.h'

      file not found

#include "petscsys.h"

         ^

1 error generated.

make[2]: *** [CMakeFiles/salvusCore.dir/src/cxx/Utilities/PETScExtensions.cpp.o] Error 1

make[2]: *** Waiting for unfinished jobs....

[ 36%] Building CXX object CMakeFiles/salvusCore.dir/src/cxx/Utilities/TomlUtilities.cpp.o

[ 38%] Building CXX object CMakeFiles/salvusCore.dir/src/cxx/Utilities/CoordTransformUtilities.cpp.o

In file included from /Users/peng/salvus/salvus_wave/src/cxx/Source/Source.cpp:14:

/Users/peng/salvus/salvus_wave/include/Source/Ricker.h:21:10: fatal error: 'petsc.h' file not found

#include <petsc.h>

         ^

In file included from /Users/peng/salvus/salvus_wave/src/cxx/Basis/TensorGll/BasisInstantiations.cpp:14:

In file included from /Users/peng/salvus/salvus_wave/include/Basis/TensorGll.h:20:

In file included from /Users/peng/salvus/salvus_wave/include/Element/HyperCube/Hexahedra.h:21:

/Users/peng/salvus/salvus_wave/include/Utilities/Logging.h:22:10: fatal error: 'petsc.h' file not

      found

#include <petsc.h>

         ^

In file included from /Users/peng/salvus/salvus_wave/src/cxx/Utilities/Logging.cpp:14:

/Users/peng/salvus/salvus_wave/include/Utilities/Logging.h:22:10: fatal error: 'petsc.h' file not

      found

#include <petsc.h>



Screen Shot 2017-06-04 at 10.53.40 AM.png

Michael Afanasiev

unread,
Jun 4, 2017, 1:05:08 PM6/4/17
to meatball, Salvus
Hello,

It just looks like the PETSc library was not properly installed to the PETSC_DIR passed to Salvus. This sometimes is because the PETSc install process did not complete correctly. In the installation instructions you linked to, there is a comment prior to PETSc installation which says:

# Production/performance installation. Follow the on-screen instructions # after the configure step until the installation completes.

Basically, after the configure stage of PETSc, some instructions will pop up on the command line which direct you to complete the installation and quickly test whether it works. Can you re-run the PETSc installation and ensure that all these steps complete correctly? If they did, and if you used the recommend /opt/petsc as the prefix, in your /opt/petsc directory you should see a directory include/ with those missing header files inside.

Let us know if this helps!

Mike.

-- 
You received this message because you are subscribed to the Google Groups "Salvus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salvus+un...@googlegroups.com.
To post to this group, send email to sal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salvus/ed0bccdd-fbf1-48c0-ad2c-d96f490b925c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Screen Shot 2017-06-04 at 10.53.40 AM.png>

Peng Guo

unread,
Jun 4, 2017, 2:00:23 PM6/4/17
to Michael Afanasiev, Salvus
HI Michael, 

It works perfect now. A little embarrassed for missing the info on-screen :) Thank you so so much 

Regards
Peng

To unsubscribe from this group and stop receiving emails from it, send an email to salvus+unsubscribe@googlegroups.com.

Michael Afanasiev

unread,
Jun 4, 2017, 4:34:43 PM6/4/17
to Peng Guo, Salvus
No worries Peng! Let us know how things go.

Best,
Mike.

To unsubscribe from this group and stop receiving emails from it, send an email to salvus+un...@googlegroups.com.

To post to this group, send email to sal...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages