<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Dear Daniel,</p>
<p>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.</p>
<p>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 <br>
</p>
<p>1. downloads and compiles external libraries, like Vc, HDF5,
FFTW, UG <br>
2. downloads the dune modules via git<br>
3. creates an options file and a build script</p>
<p>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 <a class="moz-txt-link-freetext" href="https://www.dune-project.org/doc/installation/">https://www.dune-project.org/doc/installation/</a>
page. <br>
</p>
<p>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)</p>
<p>So, what do you need to install dune (release 2.6): <br>
</p>
<p>1. compiler + git + cmake, e.g.<br>
</p>
<p>> sudo apt install g++ g++-7 git cmake pkg-config<br>
</p>
<p>2. External packages could be</p>
<p>> sudo apt install libalberta-dev libsuitesparse-dev
libsuperlu-dev</p>
<p>(Alberta is a fem library providing the Alberta-grid, Suitesparse
and superlu are sparse direct solvers, maybe you need more, like
parmetis, metis, openmpi,...)</p>
<p>3. Download dune:</p>
<p>> mkdir -p TARGET && cd TARGET<br>
> git clone <a class="moz-txt-link-freetext" href="https://gitlab.dune-projects.org/GROUP/MODULE.git">https://gitlab.dune-projects.org/GROUP/MODULE.git</a>
-- branch releases/2.6 [--single-branch]</p>
<p>where TARGET is a base directory where to download all modules
(like my-dune-dir), and (GROUP, MODULE) is any of</p>
<p>(core, dune-common)<br>
(core, dune-geometry)<br>
(core, dune-grid)<br>
(core, dune-istl)<br>
(core, dune-localfunctions)<br>
(staging, dune-typetree)<br>
(staging, dune-functions)<br>
(staging, dune-uggrid)<br>
(extensions, dune-alugrid)<br>
(extensions, dune-spgrid)<br>
...</p>
<p>So repeat the git clone command for any module you would like to
install. See also the DUNE modules page (e.g.
<a class="moz-txt-link-freetext" href="https://www.dune-project.org/groups/core/">https://www.dune-project.org/groups/core/</a>) or the
gitlab.dune-project.org Gitlab repository where to find other
modules, like PDELab or FEM or other grid modules.<br>
</p>
<p>4. Compile the dune modules:<br>
<br>
> cd TARGET<br>
> dune-common/bin/dunecontrol all</p>
<p>You may set additional CMake flags, see the corresponding
documentation on the website. <br>
</p>
<p>That's basically what the dune-installer does. It is just wrapped
into a shell script and sets some common compiler flags.<br>
</p>
<p>Best regards,<br>
Simon<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 19.03.19 16:01, Jö Fahlke wrote:<br>
</div>
<blockquote type="cite" cite="mid:20190319150148.GJ6755@scratches">
<pre class="moz-quote-pre" wrap="">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 <a class="moz-txt-link-freetext" href="http://conan2.iwr.uni-heidelberg.de/git/peter/dune-installer.git">http://conan2.iwr.uni-heidelberg.de/git/peter/dune-installer.git</a>
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:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">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 (
<a class="moz-txt-link-freetext" href="https://www.dune-project.org/doc/beginners-resources-script/">https://www.dune-project.org/doc/beginners-resources-script/</a>).
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
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">_______________________________________________
Dune mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dune@lists.dune-project.org">Dune@lists.dune-project.org</a>
<a class="moz-txt-link-freetext" href="https://lists.dune-project.org/mailman/listinfo/dune">https://lists.dune-project.org/mailman/listinfo/dune</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Dune mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dune@lists.dune-project.org">Dune@lists.dune-project.org</a>
<a class="moz-txt-link-freetext" href="https://lists.dune-project.org/mailman/listinfo/dune">https://lists.dune-project.org/mailman/listinfo/dune</a></pre>
</blockquote>
</body>
</html>