Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to install the dependencies:
yum -y install zlib* lapack* blas* python3.aarch64 python3-devel.aarch64 cmake3* boost_python* boost boost-devel numpy* python36-numpy flex bison
- Run the following command to go to the main program installation directory:
cd /path/to/CODE-ASTER
- Run the following command to decompress the main program installation package:
tar -xvf aster-full-src-14.6.0-1.noarch.tar.gz
- Run the following command to go to the directory generated after decompression:
cd aster-full-src-14.6.0
- Run the following commands to modify the setup.py file:
- Open the setup.py file.
vi setup.py
- Press i to enter the insert mode and add the aarch64 option.

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the setup.py file.
- Run the following commands to modify the as_setup.py file:
- Run the following commands to modify the setup.cfg file:
- Open the setup.cfg file.
vi setup.cfg
- Press i to enter the insert mode and modify the file as follows:
CC='/path/to/gcc/bin/gcc' CXX='/ path/to/gcc/bin/g++' F90='/ path/to/gcc/bin/gfortran' LD=F90 CXXFLAGS="-std=c++11" CXXLIB='-L/ path/to/gcc/lib64 -lstdc++'

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the setup.cfg file.
- Run the following commands to modify the med configuration:
sed '186 a\ \ conf_cmd = ("export F77=$F90; "' -i products.py sed -i '188d' products.py - Run the following command to go to the Code_Aster source code directory:
cd SRC/
- Run the following command to decompress the Code_Aster installation package:
tar xvf aster-14.6.0.tgz
- Run the following commands to edit the files:
- Open the /bibfor/wscript file.
vi aster-14.6.0/bibfor/wscript
- Press i to enter the insert mode and modify line 103 as follows:
if self.env.DEST_CPU == 'x86_64' or self.env.DEST_CPU == 'aarch64':

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the /bibpyt/Utilitai/Utmess.py file.
vi ./aster-14.6.0/bibpyt/Utilitai/Utmess.py
- Press i to enter the insert mode and modify line 224 as follows:
curr_idmess = idmess.split("\0") x = curr_idmess[0].split("_") # x = idmess.split("_")
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the /bibfor/wscript file.
- Run the following command to decompress the Code_Aster installation package:
tar cvzf aster-14.6.0.tgz aster-14.6.0
- Run the following command to delete the Code_Aster installation package:
rm -rf aster-14.6.0
- Run the following command to perform the compilation:
cd /path/to/CODE-ASTER/aster-full-src-14.6.0 echo y | python3 setup.py --prefix=/path/to/CODE-ASTER

Parent topic: Code_Aster 14.6.0 Porting Guide (CentOS 7.6)

