the dependencies of aspect_2.5.0 have been compiled and installed, but when compiling aspect_2.5.0, it was prompted “Could not find a suitably recent version of deal.II”“You may want to either pass a flag -DDEAL II DIR=/path/to/deal.II to cmakeor set an environment variable “DEAL II DIR” that contains a path to asufficiently recent version of deal.Il.”.
Compile aspect_2.5.0 with: cmake -DEAL_II_DIR=/public/home/cugb3001220005/dealii-9.4.1-install/share/deal.II -DCMAKE_INSTALL_PREFIX=/public/ home/cugb3001220005/dealii-9.4.1-install/share/deal. home/cugb3001220005/aspect_2.5.0-install …
When I use candi to compile Deal ii, it was too slow and took 3~4 days and no errors were reported. When Probing the environment …, the following error is reported
I compiled it manually and got all the dependencies to compile as required. Deal ii was also installed in the specified installation path.
Thanks !
@Shengxuan In your cmake command line for ASPECT, you say that deal.II can be found at
Can you show what is in this directory? I’m asking this because if during configuration of ASPECT, cmake tells you Could not find a suitably recent version of deal.II
, then the first question to ask is whether the error message is correct or wrong. It is of course correct if there really isn’t a version of deal.II in the direction where you say that it is.
Best
W.
Dear @bangerth
The above figure shows things in this file. Is there anything wrong about the compiling of Deal II?
Looking forward to your suggestions and help.
Thank you,
Shengxuan
@Shengxuan Yes, this is not a complete installation. Something has gone wrong, though I do not know what of course since I don’t know how you installed deal.II. I can see, however, that the two directories you show are owned by root
, even though they are in your home directory. This makes no sense, and prevents you from writing into it. You may want to remove the whole directory and install again.
Best
W.
Dear @bangerth ,
Thank you very much for your help, I have another question I would like to bother you with.
My ASPECT program is installed in my home directory and DEAL II is installed in the root directory. Combined with your suggestion, in my case, is it necessary to compile using my home directory?
Compiling DEAL II requires quite a few dependencies, do those dependencies also need to be compiled using my home directory and not in the root directory?
Thanks again ,
Shengxuan
@Shengxuan In the end, it doesn’t matter whether you install deal.II and all of its dependencies as root or as a regular user on the system. Both approaches work. However, I would recommend against installing things as root into a user’s home directory, as you did in one of the pictures above. If you’re root, install into /usr
or /usr/local
; if you’re a regular user, install into your home directory.
Best
W.
Thank you so much for your timely help!
I’m thinking of switching to using ASPECT to continue doing some geodynamic simulation work.
It’s a nice software and a very energetic platform.
Dear @bangerth ,
I’m sorry to bother you again. I have a deal ii related problem when compiling ASPECT.
I recompiled deal II under my own account with the following order and parameters:
cmake -DDEAL_II_WITH_MPI=ON -DMETIS_DIR= /public/software/modules/apps/metis/5.1.0 -DP4EST_DIR=/public/home/cugb3001220005/p4est-install -DDEAL_II_WITH_P4EST=ON -DZLIB_DIR= /public/software/apps/zlib/1.2.13 -DPETSC_DIR=/public/home/cugb3001220005/petsc-3.13.1 -DPETSC_ARCH=x86_64 -DTRILINOS_DIR=/public/home/cugb3001220005/Trilinos-14.0.0-install -DCMAKE_INSTALL_PREFIX=/public/home/cugb3001220005/dealii-9.4.1-install …/
The current case is that compiling ASPECT_2.5.0 recognizes deal II but then it warns “deal.II was built without support for Trilinos!”.
Is there something wrong with my compilation parameters, or is it caused by a mistake in the installation process?or needs to add other parameters?
Thank you in advance,
Shengxuan
@Shengxuan Well, apparently deal.II did not recognize or find Trilinos in the directory you provided with -DTRILINOS_DIR
. Do you still have the deal.II build directory? In it, there’s a file detailed.log
that you could look at to see whether configuration found a Trilinos installation.
Best
W.
@bangerth Yes, the file detailed.log
exists and it shows DEAL_II_WITH_TRILINOS=OFF
, as the following screenshot:
I just turn on the switch through modifying OFF
to ON
and compile cmake
with -DTRILINOS_DIR=/public/home/cugb3001220005/Trilinos-14.0.0-install
. But, Trilinos
was not recognized during ASPECT compilation.
I’m not quite sure what went wrong because there are currently no error messages, but it couldn’t recognize Trilinos
when compiling aspect. I think it’s more likely to be a DEAL II
issue.
How can I install Trilinos correctly?
Thank you again for your help!
@Shengxuan - what version of linux are you currently using? If it is a recent version of Ubuntu, Red Hat, etc, then some of the recommendations on this related forum post may help.