Installation Help for Configuring Deal.ii & Docker using Windows Command Prompt

187 views
Skip to first unread message

Bryan Kinzer

unread,
Oct 4, 2020, 5:57:59 PM10/4/20
to Prisms-CPFE-users
Hey PRISMS,

My name is Bryan.  I am a PhD student at University of Michigan.  This is my first time installing any PRISMS software (I am installing PRISM-PF V. 2.1.2).  I have Windows 10 and ended up installing CMake through a GIT Terminal.  I also installed the Deal.ii and PRISM-PF images through Docker (also my first time using that).  When I try to run the allenCahn example, it seems to recognize CMake, but it cannot find "deal.II".   When I follow the troubleshooting guide on the PRISM website and use "echo $DEAL_II_DIR" it just returns $DEAL_II_DIR, so I assume deal.II is outside Docker.  I want to add "deal.II" to the environment path, but I do not no where "deal.II" is stored.  Do you know how to find the installation prefix of "deal.II" if I am using Docker?  I have attached my Command Prompt log as well as my Docker Container for deal.II.  Let me know if you need any more information.

Cheers


Microsoft Windows [Version 10.0.18363.1082]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\bkinz>cd C:\Users\bkinz\DockerWorkspace\phaseField\applications\allenCahn

C:\Users\bkinz\DockerWorkspace\phaseField\applications\allenCahn>cmake .
CMake Error at CMakeLists.txt:8 (FIND_PACKAGE):
  Could not find a package configuration file provided by "deal.II"
  (requested version 8.3.0) with any of the following names:

    deal.IIConfig.cmake
    deal.ii-config.cmake

  Add the installation prefix of "deal.II" to CMAKE_PREFIX_PATH or set
  "deal.II_DIR" to a directory containing one of the above files.  If
  "deal.II" provides a separate development package or SDK, be sure it has
  been installed.

-- Configuring incomplete, errors occurred!

C:\Users\bkinz\DockerWorkspace\phaseField\applications\allenCahn>make debug
'make' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\bkinz\DockerWorkspace\phaseField\applications\allenCahn>echo $DEAL_II_DIR
$DEAL_II_DIR

C:\Users\bkinz\DockerWorkspace\phaseField\applications\allenCahn>export
'export' is not recognized as an internal or external command,
operable program or batch file.


Raghunandan Pratoori

unread,
Oct 4, 2020, 10:50:15 PM10/4/20
to Prisms-CPFE-users
Hi Bryan,

I am not part of the developer team but thought of helping you out.

The problem you are facing is that the PRISMS package doesn't know where to look for the deal.ii installation. So, all you need to do is set the path using "export DEAL_II_DIR=/path/to/deal.ii/installation" (without quotes). If you know the directory in which you installed deal.ii, enter that directory and give the command "export DEAL_II_DIR=$PWD" (without quotes).

Also, I suggest using WSL and I feel is a little easier to work with than Docker.

Best,
Raghunandan.

Aaditya Lakshmanan

unread,
Oct 5, 2020, 12:16:54 AM10/5/20
to Prisms-CPFE-users
Hi Bryan,
   I have been able to successfully install deal.ii and subsequently PRISMS-CPFE via the Ubuntu 18.04 distribution of Windows Subsystem for Linux(WSL). I have no experience with Docker so I am sharing the installation procedure for WSL, which I found to be quite straightforward.

1) Download and setup WSL which is tantamount to installing an App through the Microsoft Store and configuring it. Instructions can be found in this link.

2) Once you download, install and setup WSL you will be working on a linux terminal, and particularly the ubuntu terminal if you choose to install the Ubuntu distribution. You can follow the instructions to build and install deal.ii(and the necessary prerequisites) using candi as outlined in this pdf. That, according to me, is probably one of the most hassle-free methods to install deal.ii on your system since it involves minimal intervention from the user. Although the instructions I share are for installing deal.ii for use by PRISMS-CPFE the procedure should be equally valid for PRISMS-PF as well. 

Please give the above steps a try and let us know if you come across any issues.

Note : As pointed out in the earlier response the error you are obtaining is because the path to deal.ii installation is not included in the $PATH environment variable. During the build process for deal.ii, which is carried out using cmake, the environment variable CMAKE_INSTALL_PREFIX is the one that you should set to specify where you would like deal.ii installed. Additionally, the commands export and echo that you have specified are supposed to work on a linux terminal and will either not work or show a different kind of behavior on the windows command line. Can you specifically point out the instructions you followed to install deal.ii? Or perhaps explain in some detail how you went about building and installing deal.ii? 

Best,
Aaditya

Bryan Kinzer

unread,
Oct 5, 2020, 9:06:20 PM10/5/20
to Aaditya Lakshmanan, Prisms-CPFE-users
Thanks  Raghunandan and Aaditya,

I ended up taking the suggestion to use WSL instead of Docker since it seems there is more documentation for that.  I was successfully able to install and run the allen-Cahn example withe Deal.ii working correctly in Ubuntu within the WSL.  Thanks for the suggestion.  

Cheers


--
You received this message because you are subscribed to a topic in the Google Groups "Prisms-CPFE-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/prisms-cpfe-users/XqhM0OfePYQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to prisms-cpfe-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prisms-cpfe-users/a2936c07-07f9-4dfa-9a30-52b13fd20815n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages