Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. 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
  3. Run the following command to go to the main program installation directory:
    cd /path/to/CODE-ASTER
  4. Run the following command to decompress the main program installation package:
    tar -xvf aster-full-src-14.6.0-1.noarch.tar.gz
  5. Run the following command to go to the directory generated after decompression:
    cd aster-full-src-14.6.0
  6. Run the following commands to modify the setup.py file:
    1. Open the setup.py file.
      vi setup.py
    2. Press i to enter the insert mode and add the aarch64 option.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  7. Run the following commands to modify the as_setup.py file:
    1. Open the as_setup.py file.
      vi as_setup.py
    2. Press i to enter the insert mode.
      1. Add the aarch64 option to line 1538.
        'aarch64': 'shell|script|aarch64',

      2. Modify the number of compilation cores to increase the compilation speed.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  8. Run the following commands to modify the setup.cfg file:
    1. Open the setup.cfg file.
      vi setup.cfg
    2. 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++'

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  9. 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
  10. Run the following command to go to the Code_Aster source code directory:
    cd SRC/
  11. Run the following command to decompress the Code_Aster installation package:
    tar xvf aster-14.6.0.tgz
  12. Run the following commands to edit the files:
    1. Open the /bibfor/wscript file.
      vi aster-14.6.0/bibfor/wscript
    2. 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':

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
    4. Open the /bibpyt/Utilitai/Utmess.py file.
      vi ./aster-14.6.0/bibpyt/Utilitai/Utmess.py
    5. 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("_")

    6. Press Esc, type :wq!, and press Enter to save the file and exit.
  13. Run the following command to decompress the Code_Aster installation package:
    tar cvzf aster-14.6.0.tgz aster-14.6.0
  14. Run the following command to delete the Code_Aster installation package:
    rm -rf aster-14.6.0
  15. 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