Skip to content

Firedrake installation on Ubuntu 20.04 - cmake/libsupermesh issues #3374

Closed Answered by JDBetteridge
cpjordan asked this question in Firedrake support
Discussion options

You must be logged in to vote

The CMake that is installed by PETSc isn't on the PATH. We should probably detect this and set the CMake installed by PETSc to be the CMake we use in the rest of the install script.

A quick fix would be to activate the Firedrake virtual environment, install libsupermesh manually and then update, by running:

cd $VIRTUAL_ENV/src/libsupermesh/build
$VIRTUAL_ENV/src/petsc/default/bin/cmake .. \
    -DBUILD_SHARED_LIBS=ON \
    -DCMAKE_INSTALL_PREFIX=$VIRTUAL_ENV \
    -DMPI_C_COMPILER=$VIRTUAL_ENV/bin/mpicc \
    -DMPI_CXX_COMPILER=$VIRTUAL_ENV/bin/mpicxx \
    -DMPI_Fortran_COMPILER=$VIRTUAL_ENV/bin/mpif90 \
    -DCMAKE_Fortran_COMPILER=$VIRTUAL_ENV/bin/mpif90 \
    -DMPIEXEC_EXECUTABLE=$VIR…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cpjordan
Comment options

Answer selected by cpjordan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants