installation issues

54 views
Skip to first unread message

Felix

unread,
Aug 4, 2017, 9:51:39 AM8/4/17
to Salvus


Hi!

I installed salvus on Ubuntu 16.04.3 LTS (Xenial Xerus) following your instructions.
Most things worked well, however I had some issues that I would like to share:


I.)
# Install salvus_wave
when doing :
cmake .. \ -DPETSC_DIR=/opt/petsc \ -DEIGEN_INCLUDE=/usr/include/eigen3 \ -DMPI_C_COMPILER=mpicc \ -DMPI_CXX_COMPILER=mpicxx \ -DHDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/mpich

I also had to define

-DNETCDF_DIR=/usr/lib/x86_64-linux-gnu

---> I am also not so shure with my netcdf installation.
I think netcdf was not listed in the list of dependencies.

Which is the right choice for the DHDF5_DIR?

libnetcdf_c++4.a


I have currently
libnetcdf-c++4-1/xenial,now 4.2.1-3 amd64 [installed,automatic]
libnetcdf-c++4-dev/xenial,now 4.2.1-3 amd64 [installed]
libnetcdf-dev/xenial,now 1:4.4.0-2 amd64 [installed]
libnetcdf11/xenial,now 1:4.4.0-2 amd64 [installed]
netcdf-bin/xenial,now 1:4.4.0-2 amd64 [installed]
netcdf-doc/xenial,xenial,now 1:4.4.0-2 all [installed]
installed

and
libnetcdf_c++4.a
libnetcdf_c++4.so
libnetcdf_c++4.so.1
libnetcdf_c++4.so.1.0.2
libnetcdf.settings
libnetcdf.so
libnetcdf.so.11
libnetcdf.so.11.0.0

are in the /usr/lib/x86_64-linux-gnu folder...

II.)
to install the python package salvus_wave I had to do

cd /where/code/goes/salvus_wave/src/py
pip install -v -e .

III.)
in salvus_wave/tests
I cannot find
./create_unit_test_data.sh
./run_unit_tests.sh

I was running instead "python build_unit_test_meshes.py TEST"
which was running without errors and created a bunch of *.e files in the TEST-dir.

can I now be sure that the installation was successful?


Thanks!
Felix

Christian Boehm

unread,
Aug 5, 2017, 8:34:15 AM8/5/17
to Felix, Salvus
Hi Felix,

Thanks a lot for your comments! I am very sorry, that is totally our fault. We recently refactored the git repos to make the installation much simpler, but then forgot to update the website… doh!

The installation instructions you were following should still work though with the minor modifications you already did.
After building salvus with `make` you should see this message


xxx===============================================xxx
Good job! You have successfully built salvus.
Now check if everything is running properly with:
 
 make -j4 CTEST_OUTPUT_ON_FAILURE=1 test ARGS=-j4
 
-j4 will speed up the tests and run them in parallel
If you don't have access to more than one core, run this instead:
 make CTEST_OUTPUT_ON_FAILURE=1 test
xxx===============================================xxx


You can copy&paste this command, which will run all the tests. There is no need anymore for creating the meshes (*.e) manually.

I will update the website with the new instructions immediately.

You may consider removing all components of salvus_* and pyexodus (but keeping PETSc and conda) and follow the new instructions starting from "Install salvus and run the test suite". 
It probably doesn’t matter now, but it is certainly easier to keep up to date with just a single repository.


Cheers
Christian
> --
> 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/57fc4614-e175-4bac-b61f-aebd8a92e5b5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Felix

unread,
Aug 7, 2017, 8:09:05 AM8/7/17
to Salvus
Thank you Christian for your fast reply!
Everything went smoothly now !

As you suggested, I installed the single repo and followed the updated installation instructions.

Cheers, Felix
Reply all
Reply to author
Forward
0 new messages