Installing dealii on MacOS and step-40: .dmg file or cloning the repo?

143 views
Skip to first unread message

bob bill

unread,
Mar 16, 2021, 6:56:03 PM3/16/21
to deal.II User Group
Hi everyone,

I installed dealii by cloning the repo as described here ("impatient version"). After installing, I exported the environmental variable DEAL_II_DIR and I can compile and run the first examples correctly. I'm using macOS Catalina ( version 10.15.7 ).

In compiling the step-40, I got and error message that says essentially that the following options are not true (because are not installed on my machine):

      DEAL_II_WITH_PETSC = OFF

      DEAL_II_PETSC_WITH_COMPLEX = 

      DEAL_II_WITH_P4EST = OFF

      DEAL_II_WITH_TRILINOS = OFF


My questions are: 

1) If I install dealii by using the prepackaged .dmg file, will I have all the libraries to compile and run step-40?

2) Is there a way to install dealii and have all those libraries? I've seen the MacOS instructions, but I can't find a workaround for my problem. Should I install PETSc (and the others) manually on my laptop? 


Best,

Lukas



Luca Heltai

unread,
Mar 17, 2021, 2:57:14 AM3/17/21
to dea...@googlegroups.com


Il giorno 16 mar 2021, alle ore 23:56, bob bill <vef...@gmail.com> ha scritto:

1) If I install dealii by using the prepackaged .dmg file, will I have all the libraries to compile and run step-40?


Yes. 

2) Is there a way to install dealii and have all those libraries? I've seen the MacOS instructions, but I can't find a workaround for my problem. Should I install PETSc (and the others) manually on my laptop? 

The dmg contains all of the supported external libraries. My personal option is to install the dmg, then recompile the library (to have the master version).

Best, 
Luca. 


bob bill

unread,
Mar 17, 2021, 5:08:58 AM3/17/21
to deal.II User Group
Thanks for your answer. 

> My personal option is to install the dmg, then recompile the library (to have the master version).

So I have to install the dmg, even if I still have the library installed from GitHub with the command line procedure ? 

If so, once I installed the dmg successfully , how can I "recompile the library"? 


Best,
Lukas

luca.heltai

unread,
Mar 17, 2021, 6:41:09 AM3/17/21
to Deal.II Users
If you install the dmg package, and compile the library just like you did before *within the terminal that opens when you click on the deal.II app*, the compilation process would find correctly all the installed libraries.

Best,
Luca.
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/b0f44c4d-9e57-4e6b-9b83-36b6c13de71dn%40googlegroups.com.

Message has been deleted
Message has been deleted

bob bill

unread,
Mar 17, 2021, 11:36:46 AM3/17/21
to deal.II User Group
Okay, here's what I did:
1) installed the .dmg file
2) I unpacked the .tar.gz 9.2.0 version and installed it in /usr/local/bin using the deal.II app terminal

Now, *from within the deal.II app* terminal, I can compile step-40 and all the others that are located at 



But if I try to compile step-40 (always within the deal.II app terminal) located at 

/Desktop/dealii-9.2.0/examples/ (i.e. the source directory, not in the folder above)

I got this error:

     However, the deal.II library found at /usr/local/bin/deal_9.2.0 was configured with these options

      DEAL_II_WITH_PETSC = OFF

      DEAL_II_PETSC_WITH_COMPLEX = 

      DEAL_II_WITH_P4EST = OFF

      DEAL_II_WITH_TRILINOS = OFF

  which conflict with the requirements.


The problem is that it's not using the "setup /Applications/deal.II.app/Contents/Resources/Libraries", but this is happening for step-40 only! Indeed, if I try to compile step-50( 17,56,...) it compiles, since it's using the correct setup. 

How is this possible?



Thanks for your patience.
Best, Lukas

bob bill

unread,
Mar 17, 2021, 12:50:30 PM3/17/21
to deal.II User Group

After removing CMakeCache.txt and CMakeFiles folder in /examples/step-40, I can compile and run it, both within deal.II app terminal and with a common terminal.

One last thing: are the steps I described above  (.dmg + cloning) the usual way to install dealii with MacOS? It seems to me like if I installed the library twice.


Thanks again,
Lukas

Luca Heltai

unread,
Mar 17, 2021, 1:13:46 PM3/17/21
to dea...@googlegroups.com
Dear Bob,

The dmg package comes already with deal.II 9.2 installed, so your compilation is not necessary.

As far as your problem is concerned, can you try to start from a clean directory? Remove everything except the cc file and the CMakeLists.txt file and try again. 

Step 40 works for me using the installation from the dmg file directly. 

Luca

Il giorno 17 mar 2021, alle ore 16:36, bob bill <vef...@gmail.com> ha scritto:

Okay, here's what I did:

bob bill

unread,
Mar 17, 2021, 1:30:13 PM3/17/21
to deal.II User Group
Great! I followed your suggestion and now it compiles and run (with a normal terminal and also within the deal.ii app terminal). Thanks so much for the check.


> The dmg package comes already with deal.II 9.2 installed, so your compilation is not necessary.

So far I have deal.II 9.2.0 installed with .dmg, but also the "unnecessary" installation in /usr/local/bin/deal_9.2.0 obtained with .tar.gz. 
To remove the latter, is it sufficient to drag the deal_9.2.0 folder into bin? 

Thanks 

Luca Heltai

unread,
Mar 17, 2021, 3:39:27 PM3/17/21
to dea...@googlegroups.com
Il giorno 17 mar 2021, alle ore 18:30, bob bill <vef...@gmail.com> ha scritto:
>
> So far I have deal.II 9.2.0 installed with .dmg, but also the "unnecessary" installation in /usr/local/bin/deal_9.2.0 obtained with .tar.gz.
> To remove the latter, is it sufficient to drag the deal_9.2.0 folder into bin?

Yes.
:-)

bob bill

unread,
Mar 17, 2021, 5:00:23 PM3/17/21
to deal.II User Group

Many thanks for your support! Everything is clear now :-)
Reply all
Reply to author
Forward
0 new messages