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

Hi Yueyang,
I also tried to install the ASPECT on a server, but had the same problem as you. Have you solved the problem now?

Best,
Yingjie

Hi Yingjie,

I did not solve that problem and gave up installing that in our CentOS server… I am sorry…

But it would be nice of you if you let me know when you make it. :slight_smile:

Good luck~

Best,
Yueyang

All:
at the end of the day, the following message shows what the problem is:

We can’t know why the compiler isn’t usable, but you can probably go into the directory where configure is being executed and there should be a log file in which configure records what command it was trying to execute, and what error it encountered. What you see on the screen is only that an error occurred, but not what the error was. We would need to know what that error was to tell why HDF5 could not be configured.

Best
W.

Sorry for not getting back to your first message, I must have missed your reply. In addition to Wolfgang’s suggestion I also want to point out the following candi output that you posted:

--------------------------------------------------------------------------------
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.

also, you should have gotten the following output (at least I get it when I use the centos platform file):

 CentOS 7

 This build script assumes that you have several packages already
 installed via CentOS's yum using the following command:

 > sudo yum install patch svn git wget \
 @development-tools gcc-c++ cmake \
 centos-release-scl devtoolset-9 \
 openmpi openmpi-devel \
 patch \
 libtool libtool-ltdl libtool-ltdl-devel \
 lua lua-devel \
 blas blas-devel lapack lapack-devel \
 doxygen graphviz graphviz-devel qt-devel \
 gmp-devel

 Be sure to switch to the recent compilers with

 > scl enable devtoolset-9 bash

 Please load the 'openmpi' compiler with

 > module load mpi/openmpi-x86_64

 and then set the compiler enviroment variables to

 > export CC=mpicc; export CXX=mpicxx; export FC=mpif90; export FF=mpif77

 before you continue!

So the important part would be to first figure out if you have all the necessary compilers and packages installed that candi needs and then follow the instructions above.

Alternatively, if your system has docker installed, I would recommend taking a look at the docker container for ASPECT (instructions in the ASPECT manual). That would save you the trouble of compiling the code yourself.

Best,
Rene

Hi Wolfgang,

Here are the configure records for the above HDF5 installation problem.
I would be very grateful if you could help me out with this!

Best,
Yingjie

candi_configure.log (1.5 KB)
config.log (37.7 KB)