[Dune] Installation problem and some doubts
Simon Praetorius
simon.praetorius at tu-dresden.de
Tue Mar 19 16:44:09 CET 2019
Dear Daniel,
Thanks for reporting a defect in the dune-installer script. Probably the
website will be update to give some advice or the installer-script will
be updated correspondingly.
In my understanding of your initial message, you wanted to install dune
from source and just used the beginners guide to do so, right? The
dune-installer from the repository could be a way to do it with just a
very few commands. Essentially it
1. downloads and compiles external libraries, like Vc, HDF5, FFTW, UG
2. downloads the dune modules via git
3. creates an options file and a build script
These steps could also be done manually. This is, what is also described
in the "how to get started with Dune" guide by Oliver Sander, or on the
https://www.dune-project.org/doc/installation/ page.
You may not need the listed external libraries in the dune-installer or
may need others, so it could be better to install it yourself. I,
personally, prefer to install external dependencies from packages (if
available)
So, what do you need to install dune (release 2.6):
1. compiler + git + cmake, e.g.
> sudo apt install g++ g++-7 git cmake pkg-config
2. External packages could be
> sudo apt install libalberta-dev libsuitesparse-dev libsuperlu-dev
(Alberta is a fem library providing the Alberta-grid, Suitesparse and
superlu are sparse direct solvers, maybe you need more, like parmetis,
metis, openmpi,...)
3. Download dune:
> mkdir -p TARGET && cd TARGET
> git clone https://gitlab.dune-projects.org/GROUP/MODULE.git -- branch
releases/2.6 [--single-branch]
where TARGET is a base directory where to download all modules (like
my-dune-dir), and (GROUP, MODULE) is any of
(core, dune-common)
(core, dune-geometry)
(core, dune-grid)
(core, dune-istl)
(core, dune-localfunctions)
(staging, dune-typetree)
(staging, dune-functions)
(staging, dune-uggrid)
(extensions, dune-alugrid)
(extensions, dune-spgrid)
...
So repeat the git clone command for any module you would like to
install. See also the DUNE modules page (e.g.
https://www.dune-project.org/groups/core/) or the
gitlab.dune-project.org Gitlab repository where to find other modules,
like PDELab or FEM or other grid modules.
4. Compile the dune modules:
> cd TARGET
> dune-common/bin/dunecontrol all
You may set additional CMake flags, see the corresponding documentation
on the website.
That's basically what the dune-installer does. It is just wrapped into a
shell script and sets some common compiler flags.
Best regards,
Simon
On 19.03.19 16:01, Jö Fahlke wrote:
> You're going to need some additional packages:
>
> autoconf bison flex libtool pkg-config wget
>
> Even then, the setup scripts fail because they try to use dune-alugrid master
> with dune-2.4, so you're going to have to adapt them.
>
> For reference, here is the Dockerfile I used to reproduce
> ======================================================================
> FROM ubuntu:18.04
>
> ENV DEBIAN_FRONTEND=noninteractive
>
> RUN apt update
> RUN apt install -y git
> RUN apt install -y cmake
> RUN apt install -y mpich mpich-doc libmpich-dev
> RUN apt install -y zlib1g zlib1g-dev
> RUN apt install -y texlive
> RUN apt install -y texlive-science
> RUN apt install -y texlive-latex-extra
> RUN apt install -y texlive-bibtex-extra
> #RUN apt install -y texlive-math-extra
> RUN apt install -y texlive-science
> RUN apt install -y texlive-fonts-extra
> RUN apt install -y paraview
> RUN apt install -y gmsh
> # Additional installs
> RUN apt install -y autoconf bison flex libtool pkg-config wget
>
> RUN adduser test --disabled-password
> USER test
>
> WORKDIR /home/test
>
> RUN git clone http://conan2.iwr.uni-heidelberg.de/git/peter/dune-installer.git
> RUN ./dune-installer/core-2.4.1/installer.sh my-dune-dir
> WORKDIR my-dune-dir
> RUN ./buildmodules.sh
> ======================================================================
>
> Am Di, 19. Mär 2019, 12:19:27 +0100 schrieb Daniel Jara Heredia:
>> First, thank you for your work and time.
>> I am new to DUNE and somehow a little bit to everything. Therefore I am
>> sorry if some of my question are slightly dumb. I am trying to install DUNE
>> in a virtual box with Ubuntu 18.04.2 LTS as OS.
>> I am installing DUNE using the guidelines given in the 3 option,
>> instillation from source via a shell script (
>> https://www.dune-project.org/doc/beginners-resources-script/).
>>
>> I did have a problem with
>>
>> *sudo apt install texlive-math-extra*
>>
>> where I get a message that says:
>>
>> *This may mean that the package is missing, has been obsoleted, or
>> is only available from another source
>> However the following packages replace it:
>> texlive-science-doc texlive-science
>> *
>>
>> *E: Package 'texlive-math-extra' has no installation candidate*
>>
>> So I did install texlive-science-doc since texlive-science has been already
>> installed. But I think it is irrelevant for my problem.
>> Then, I cloned the dune-installer scripts and run the installer
>> Where I get the following message:
>> *./dune-installer/core-2.4.1/installer.sh: line 107: autoreconf: command
>> not found*
>> I think here is the problem. When I go to my-dune-dir and I run
>> ./buildmodules.sh, I get:
>> *bash: ./buildmodules.sh: No such file or directory*
>> I think is has to do with the installer. I have read in the website, that I
>> would need to rewrite the installer script and obviously to ask some
>> expert. Could you please, once you have time, provide me with a solution if
>> possible? Thank you.
>> I have also that in the dune-installer folder there are other folders than
>> core2-4-1. Does it mean that If I want to use DUNE pdelab, I can use this
>> same installer? Or installing the DUNE core, I am installing also
>> DUNE-PDELAB?
>>
>> Thank you again
>>
>> Best regards,
>> Daniel Jara
>>
>>
>> Best regards,
>> Daniel Jara
>> _______________________________________________
>> Dune mailing list
>> Dune at lists.dune-project.org
>> https://lists.dune-project.org/mailman/listinfo/dune
>
>
> _______________________________________________
> Dune mailing list
> Dune at lists.dune-project.org
> https://lists.dune-project.org/mailman/listinfo/dune
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20190319/8c9bb6f1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 2497 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20190319/8c9bb6f1/attachment.key>
More information about the Dune
mailing list