Installing candi in CentOS8

Hi all,

I am about to install the ASPECT on a server (CentOS8) in our institute without root.

However, while installing the candi, I did not see the CentOS8 platform is supported by the candi. May I kindly ask, what I should do? Shall I use the platform document CentOS7 in the ‘/platforms/supported/’, or something?

Many thanks for your help, and have a nice day!
Regards,
Yueyang

Hi Yueyang,

The best of course of action would be to try the CentOS7 platform file. With some luck this will just work. You can increase the chances of success by only installing the minimally necessary packages via candi, i.e. disable every PACKAGE variable inside candi.cfg except for p4est, trilinos, and hdf5.

Please report back how this goes, then we can add CentOS8 as supported platform or make adjustments as necessary.

Best,
Rene

Hi Rene,

thanks a lot for your answer! I just tried your suggestion and use the minimum necessary to install the candi. Unfortunately, it failed. Below are the error messages that I copied from my terminal.

[yxia@landinian candi]$ ./candi.sh -p /home/yxia/ASPECT_PROJ/cust_bin --platform=deal.II-toolchain/platforms/supported/centos7.platform 

*******************************************************************************
candi tries now to download, configure, build and install:

Project:  deal.II-toolchain
Platform: deal.II-toolchain/platforms/supported/centos7.platform

-------------------------------------------------------------------------------
Downloading files to:     ~/ASPECT_PROJ/cust_bin/tmp/src
Unpacking files to:       ~/ASPECT_PROJ/cust_bin/tmp/unpack
Building packages in:     ~/ASPECT_PROJ/cust_bin/tmp/build
Installing packages in:   ~/ASPECT_PROJ/cust_bin
Package configuration in: ~/ASPECT_PROJ/cust_bin/configuration

-------------------------------------------------------------------------------
Number of (at most) build processes to use: JOBS=1

-------------------------------------------------------------------------------
Packages:
once:cmake
load:dealii-prepare
once:hdf5
once:p4est
once:trilinos

-------------------------------------------------------------------------------
Currently loaded modulefiles:
No modules loaded


--------------------------------------------------------------------------------
Compiler Variables:

CC  variable not set. Please set it with $export CC  = <(MPI) C compiler>
CXX variable not set. Please set it with $export CXX = <(MPI) C++ compiler>
FC  variable not set. Please set it with $export FC  = <(MPI) F90 compiler>
FF  variable not set. Please set it with $export FF  = <(MPI) F77 compiler>

One or multiple compiler variables (CC,CXX,FC,FF) are not set.
Please read your platform information above carefully, how you get those
compilers installed and set up! Usually the values should be:
CC=mpicc, CXX=mpicxx, FC=mpif90, FF=mpif77
It is strongly recommended to set them to guarantee the same compilers for all
dependencies.

--------------------------------------------------------------------------------
Once ready, hit enter to continue!



*******************************************************************************
candi tries now to download, configure, build and install:

Project:  deal.II-toolchain
Platform: deal.II-toolchain/platforms/supported/centos7.platform

Fetching cmake 3.20.5
Trying to download https://tjhei.info/candi-mirror/cmake-3.20.5-linux-x86_64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   356  100   356    0     0    944      0 --:--:-- --:--:-- --:--:--   944
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Trying to download https://cecas.clemson.edu/dealii/mirror/cmake-3.20.5-linux-x86_64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Trying to download https://cmake.org/files/v3.20/cmake-3.20.5-linux-x86_64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 41.5M  100 41.5M    0     0  16.2M      0  0:00:02  0:00:02 --:--:-- 16.2M
Verifying cmake-3.20.5-linux-x86_64.tar.gz
cmake-3.20.5-linux-x86_64.tar.gz: OK(md5)
Unpacking cmake-3.20.5-linux-x86_64.tar.gz
Building cmake 3.20.5
Info: cmake has forced BUILDCHAIN=ignore.
Loading dealii-prepare
Fetching hdf5 1.10.7
Trying to download https://tjhei.info/candi-mirror/hdf5-1.10.7.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   342  100   342    0     0    897      0 --:--:-- --:--:-- --:--:--   895
100 11.8M  100 11.8M    0     0  5350k      0  0:00:02  0:00:02 --:--:-- 11.8M
Verifying hdf5-1.10.7.tar.gz
hdf5-1.10.7.tar.gz: OK(md5)
Unpacking hdf5-1.10.7.tar.gz
Building hdf5 1.10.7
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking shell variables initial values... done
checking if basename works... yes
checking if xargs works... yes
checking for cached host... none
checking for config x86_64-unknown-linux-gnu... no
checking for config x86_64-unknown-linux-gnu... no
checking for config unknown-linux-gnu... no
checking for config unknown-linux-gnu... no
checking for config x86_64-linux-gnu... no
checking for config x86_64-linux-gnu... no
checking for config x86_64-unknown... no
checking for config linux-gnu... found
compiler 'g++' is GNU g++-8.5.0
checking for config /home/yxia/ASPECT_PROJ/cust_bin/tmp/unpack/hdf5-1.10.7/config/site-specific/host-landinian... no
checking for clang sanitizer checks... checking build mode... production
checking for gcc... mpicc
checking whether the C compiler works... no
configure: error: in `/home/yxia/ASPECT_PROJ/cust_bin/tmp/build/hdf5-1.10.7':
configure: error: C compiler cannot create executables
See `config.log' for more details
Failure with exit status: 77
Exit message: There was a problem configuring hdf5 1.10.7.
[yxia@landinian candi]$ 

So, do you think the OS version is the main problem? I follow the install instruction from the latest version of the online manual.

Many thanks for your help, and please have a nice day!

Best,
Yueyang